PageSourceSearch

https://www.bgco.ca/wp-content/plugins/wp-google-maps-pro/js/v8/category-tree-node.js?ver=10.0.09+pro-10.0.07

js bgco.ca collected 2026-10-04 08:56:04 UTC 1,095 bytes, 59 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module CategoryTreeNode
4 * @requires WPGMZA.EventDispatcher
5 */
6jQuery(function($) {
7	
8	WPGMZA.CategoryTreeNode = function(options)
9	{
10		this.children = [];
11		
12		for(var name in options)
13		{
14			switch(name)
15			{
16				case "children":
17				
18					for(var i = 0; i < options.children.length; i++)
19					{
20						var child = WPGMZA.CategoryTreeNode.createInstance(options.children[i]);
21						child.parent = this;
22						this.children.push(child);
23					}
24					
25					break;
26				
27				default:
28				
29					this[name] = options[name];
30					
31					break;
32			}
33		}
34	}
35	
36	WPGMZA.extend(WPGMZA.CategoryTreeNode, WPGMZA.EventDispatcher);
37	
38	WPGMZA.CategoryTreeNode.createInstance = function(options)
39	{
40		return new WPGMZA.CategoryTreeNode(options);
41	}
42	
43	WPGMZA.CategoryTreeNode.prototype.getChildByID = function(id)
44	{
45		if(this.id == id)
46			return this;
47		
48		for(var i = 0; i < this.children.length; i++)
49		{
50			var result = this.children[i].getChildByID(id);
51			
52			if(result)
53				return result;
54		}
55		
56		return null;
57	}
58	
59});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.