a:36:{s:9:"#provides";s:16:"dojox.help._base";s:9:"#resource";s:13:"help/_base.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:17:"dojox.rpc.Service";}i:1;a:3:{i:0;s:6:"common";i:1;s:14:"dojo.io.script";i:2;s:4:"dojo";}}s:10:"dojox.help";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:40:"Adds the help function to all variables.";}s:17:"dojox.help.locate";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:9:"searchFor";a:1:{s:4:"type";s:6:"String";}s:8:"searchIn";a:2:{s:4:"type";s:31:"String|Object|String[]|Object[]";s:7:"summary";s:63:"The namespaces to search in. Defaults to dojox.help._namespaces";}s:10:"maxResults";a:2:{s:4:"type";s:6:"Number";s:7:"summary";s:30:"The maximum number of results.";}}s:6:"source";s:2195:"		maxResults = maxResults || 20;
		var namespaces = [];
		var roots = {};
		var root;
		if(searchIn){
			if(!dojo.isArray(searchIn)){
				searchIn = [searchIn];
			}
			for(var i = 0, namespace; namespace = searchIn[i]; i++){
				root = namespace;
				if(dojo.isString(namespace)){
					namespace = dojo.getObject(namespace);
					if(!namespace){
						continue;
					}
				}else if(dojo.isObject(namespace)){
					root = namespace.__name__;
				}else{
					continue;
				}
				// Add to a list of namespace objects (in object form)
				namespaces.push(namespace);
				if(root){
					root = root.split(".")[0];
					if(!roots[root] && dojo.indexOf(dojox.help._namespaces, root) == -1){
						// Refresh anything that's not part of our global namespace list
						dojox.help.refresh(root);
					}
					roots[root] = true;
				}
			}
		}
		if(!namespaces.length){
			namespaces.push({ __name__: "window" });
			dojo.forEach(dojox.help._namespaces, function(item){ roots[item] = true; });
		}


		var searchForLower = searchFor.toLowerCase();
		var found = [];
		out:
		for(var i = 0, namespace; namespace = namespaces[i]; i++){
			var name = namespace.__name__ || "";
			var shorter = dojo.some(namespaces, function(item){
				// Return true if we find a namespace below
				// the current namespace
				item = item.__name__ || "";
				return (name.indexOf(item + ".") == 0);
			});
			if(name && !shorter){
				root = name.split(".")[0];
				var names = [];
				if(name == "window"){
					for(root in dojox.help._names){
						if(dojo.isArray(dojox.help._names[root])){
							names = names.concat(dojox.help._names[root]);
						}
					}
				}else{
					names = dojox.help._names[root];
				}
				for(var j = 0, variable; variable = names[j]; j++){
					if((name == "window" || variable.indexOf(name + ".") == 0) && variable.toLowerCase().indexOf(searchForLower) != -1){
						if(variable.slice(-10) == ".prototype"){ continue; }
						var obj = dojo.getObject(variable);
						if(obj){
							found.push([variable, obj]);
							if(found.length == maxResults){
								break out;
							}
						}
					}
				}
			}
		}


		dojox.help._displayLocated(found);
		if(!+dojo.isFF){
			return "";
		}";s:7:"summary";s:77:"Search for dojo functionality that has something to do with the given string.";s:11:"description";s:166:"Search for locally available data; variable names and any cached
documentation results for matches containing our search parameter
searchFor
The string to search for.";}s:18:"dojox.help.refresh";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:9:"namespace";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"String";s:7:"summary";s:41:"The string-representation of a namespace.";}s:9:"recursive";a:3:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";s:7:"summary";s:41:"Whether to recurse through the namespace.";}}s:6:"source";s:97:"		if(arguments.length < 2){
			recursive = true;
		}
		dojox.help._recurse(namespace, recursive);";s:7:"summary";s:72:"Useful if you reset some values, and want to restore their
help function";}s:21:"dojox.help.noConflict";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"Object";s:7:"summary";s:51:"If you pass an item, only that item will be cleaned";}}s:6:"source";s:304:"		if(arguments.length){
			return dojox.help._noConflict(item);
		}else{
			while(dojox.help._overrides.length){
				var override = dojox.help._overrides.pop();
				var parent = override[0];
				var key = override[1];
				var child = parent[key];
				parent[key] = dojox.help._noConflict(child);
			}
		}";s:7:"summary";s:98:"Use this function when you want to resolve the problems
created by including a dojox.help package.";}s:15:"dojox.help.init";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:10:"namespaces";a:2:{s:4:"type";s:8:"String[]";s:7:"summary";s:61:"Any namespaces to add to the default (dojox.help._namespaces)";}s:10:"noConflict";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"Boolen";s:7:"summary";s:35:"Whether to start in noConflict mode";}}s:6:"source";s:527:"		if(namespaces){
			dojox.help._namespaces.concat(namespaces);
		}
		dojo.addOnLoad(function(){
			dojo.require = (function(require){
				return function(){
					dojox.help.noConflict();
					require.apply(dojo, arguments);
					if(dojox.help._timer){
						clearTimeout(dojox.help._timer);
					}
					dojox.help._timer = setTimeout(function(){
						dojo.addOnLoad(function(){
							dojox.help.refresh();
							dojox.help._timer = false;
						});
					}, 500);
				}
			})(dojo.require);


			dojox.help._recurse();
		});";s:7:"summary";s:65:"Should be called by one of the implementations. Runs startup code";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:7:"require";}}}s:22:"dojox.help._noConflict";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:270:"		if(item instanceof String){
			return item.toString();
		}else if(item instanceof Number){
			return +item;
		}else if(item instanceof Boolean){
			return (item == true);
		}else if(dojo.isObject(item)){
			delete item.__name__;
			delete item.help;
		}
		return item;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:22:"dojox.help._namespaces";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:15:"dojox.help._rpc";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:22:"dojox.help._attributes";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:17:"dojox.help._clean";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"self";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:199:"		var obj = {};
		for(var i = 0, attribute; attribute = dojox.help._attributes[i]; i++){
			var value = self["__" + attribute + "__"];
			if(value){
				obj[attribute] = value;
			}
		}
		return obj;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.help._displayLocated";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"located";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:92:"		throw new Error("_displayLocated should be overridden in one of the dojox.help packages");";s:7:"summary";s:64:"Stub function to be overridden in one of the dojox.help packages";s:7:"private";b:1;}s:23:"dojox.help._displayHelp";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"loading";a:1:{s:4:"type";s:0:"";}s:3:"obj";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:89:"		throw new Error("_displayHelp should be overridden in one of the dojox.help packages");";s:7:"summary";s:64:"Stub function to be overridden in one of the dojox.help packages";s:7:"private";b:1;}s:22:"dojox.help._addVersion";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"obj";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:264:"		if(obj.name){
			obj.version = [dojo.version.major, dojo.version.minor, dojo.version.patch].join(".");
			var parts = obj.name.split(".");
			if(parts[0] == "dojo" || parts[0] == "dijit" || parts[0] == "dojox"){
				obj.project = parts[0];
			}
		}
		return obj;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.help._stripPrototype";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"original";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:203:"		var name = original.replace(/\.prototype(\.|$)/g, ".");
		var search = name;
		if(name.slice(-1) == "."){
			search = name = name.slice(0, -1);
		}else{
			name = original;
		}
		return [search, name];";s:7:"private";b:1;s:7:"summary";s:0:"";}s:16:"dojox.help._help";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:1088:"		var name = this.__name__;
		var search = dojox.help._stripPrototype(name)[0];
		var attributes = [];
		for(var i = 0, attribute; attribute = dojox.help._attributes[i]; i++){
			if(!this["__" + attribute + "__"]){
				attributes.push(attribute);
			}
		}


		dojox.help._displayHelp(true, { name: this.__name__ });


		if(!attributes.length || this.__searched__){
			dojox.help._displayHelp(false, dojox.help._clean(this));
		}else{
			this.__searched__ = true;
			dojox.help._rpc.get(dojox.help._addVersion({
				name: search,
				exact: true,
				attributes: attributes
			})).addCallback(this, function(data){
				if(this.toString === dojox.help._toString){
					this.toString(data);
				}
				if(data && data.length){
					data = data[0];
					for(var i = 0, attribute; attribute = dojox.help._attributes[i]; i++){
						if(data[attribute]){
							this["__" + attribute + "__"] = data[attribute];
						}
					}
					dojox.help._displayHelp(false, dojox.help._clean(this));
				}else{
					dojox.help._displayHelp(false, false);
				}
			});
		}
		if(!+dojo.isFF){
			return "";
		}";s:7:"private";b:1;s:7:"summary";s:0:"";}s:29:"dojox.help._help.__searched__";a:4:{s:8:"instance";s:16:"dojox.help._help";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:25:"dojox.help._help.toString";a:3:{s:8:"instance";s:16:"dojox.help._help";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:17:"dojox.help._parse";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"data";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1010:"		delete this.__searching__;
		if(data && data.length){
			var parameters = data[0].parameters;


			if(parameters){
				var signature = ["function ", this.__name__, "("];
				this.__parameters__ = parameters;
				for(var i = 0, parameter; parameter = parameters[i]; i++){
					if(i){
						signature.push(", ");
					}
					signature.push(parameter.name);
					if(parameter.types){
						var types = [];
						for(var j = 0, type; type = parameter.types[j]; j++){
							types.push(type.title);
						}
						if(types.length){
							signature.push(": ");
							signature.push(types.join("|"));
						}
					}
					if(parameter.repeating){
						signature.push("...");
					}
					if(parameter.optional){
						signature.push("?");
					}
				}
				signature.push(")");


				this.__source__ = this.__source__.replace(/function[^\(]*\([^\)]*\)/, signature.join(""));
			}


			if(this.__output__){
				delete this.__output__;
				console.log(this);
			}
		}else{
			dojox.help._displayHelp(false, false);
		}";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.help._parse.__parameters__";a:4:{s:8:"instance";s:17:"dojox.help._parse";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:28:"dojox.help._parse.__source__";a:4:{s:8:"instance";s:17:"dojox.help._parse";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:21:"dojox.help._toStrings";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:20:"dojox.help._toString";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"data";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:877:"		if(!this.__source__){
			return this.__name__;
		}


		var first = (!this.__parameters__);
		this.__parameters__ = [];


		if(data){
			dojox.help._parse.call(this, data);
		}else if(first){
			this.__searching__ = true;
			dojox.help._toStrings[dojox.help._stripPrototype(this.__name__)[0]] = this;
			if(dojox.help._toStringTimer){
				clearTimeout(dojox.help._toStringTimer);
			}
			dojox.help._toStringTimer = setTimeout(function(){ dojox.help.__toString(); }, 50);
		}


		if(!first || !this.__searching__){
			return this.__source__;
		}


		var message = "function Loading info for " + this.__name__ + "... (watch console for result) {}";


		if(!+dojo.isFF){
			this.__output__ = true;
			return message;
		}


		return {
			toString: dojo.hitch(this, function(){
				// Detect if this was called by Firebug
				this.__output__ = true;
				return message;
			})
		};";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:17:"dojox.help._parse";}}s:7:"private";b:1;s:7:"summary";s:0:"";}s:35:"dojox.help._toString.__parameters__";a:4:{s:8:"instance";s:20:"dojox.help._toString";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:34:"dojox.help._toString.__searching__";a:4:{s:8:"instance";s:20:"dojox.help._toString";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:31:"dojox.help._toString.__output__";a:4:{s:8:"instance";s:20:"dojox.help._toString";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:21:"dojox.help.__toString";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:634:"		if(dojox.help._toStringTimer){
			clearTimeout(dojox.help._toStringTimer);
		}


		var names = [];
		dojox.help.noConflict(dojox.help._toStrings);
		for(var name in dojox.help._toStrings){
			names.push(name);
		}
		while(names.length){
			dojox.help._rpc.batch(dojox.help._addVersion({
				names: names.splice(-50, 50),
				exact: true,
				attributes: ["parameters"]
			})).addCallback(this, function(datas){
				for(var i = 0, data; data = datas[i]; i++){
					var fn = dojox.help._toStrings[data.name];
					if(fn){
						dojox.help._parse.call(fn, [data]);
						delete dojox.help._toStrings[data.name];
					}
				}
			});
		}";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:17:"dojox.help._parse";}}s:7:"private";b:1;s:7:"summary";s:0:"";}s:21:"dojox.help._overrides";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:22:"dojox.help._recursions";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:17:"dojox.help._names";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:19:"dojox.help._recurse";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:9:"namespace";a:2:{s:8:"optional";b:1;s:4:"type";s:6:"String";}s:9:"recursive";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}}s:6:"source";s:737:"		if(arguments.length < 2){
			recursive = true;
		}


		var items = [];


		if(namespace && dojo.isString(namespace)){
			dojox.help.__recurse(dojo.getObject(namespace), namespace, namespace, items, recursive);
		}else{
			for(var i = 0, ns; ns = dojox.help._namespaces[i]; i++){
				if(window[ns]){
					dojox.help._recursions.push([window[ns], ns, ns]);
					window[ns].__name__ = ns;
					if(!window[ns].help){
						window[ns].help = dojox.help._help;
					}
				}
			}
		}


		while(dojox.help._recursions.length){
			var recursion = dojox.help._recursions.shift();
			dojox.help.__recurse(recursion[0], recursion[1], recursion[2], items, recursive);
		}


		for(var i = 0, item; item = items[i]; i++){
			delete item.__seen__;
		}";s:7:"private";b:1;s:7:"summary";s:0:"";}s:20:"dojox.help.__recurse";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:5:{s:9:"namespace";a:1:{s:4:"type";s:0:"";}s:4:"root";a:1:{s:4:"type";s:0:"";}s:4:"name";a:1:{s:4:"type";s:0:"";}s:5:"items";a:1:{s:4:"type";s:0:"";}s:9:"recursive";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1576:"		for(var key in namespace){
			if(key.match(/([^\w_.$]|__[\w_.$]+__)/)){
				continue;
			}


			var item = namespace[key];
			if(typeof item == "undefined"
				|| item === document
				|| item === window
				|| item === dojox.help._toString
				|| item === dojox.help._help
				|| item === null
				|| (+dojo.isIE && item.tagName)
				|| item.__seen__
			) {
				continue;
			}


			var isFunction = dojo.isFunction(item);
			var isObject = dojo.isObject(item) && !dojo.isArray(item) && !item.nodeType;


			var itemName = (name) ? (name + "." + key) : key;


			if(itemName == "dojo._blockAsync"){
				continue;
			}


			if(!item.__name__){
				var parent = null;
				if(dojo.isString(item)){
					parent = String;
				}else if(typeof item == "number"){
					parent = Number;
				}else if(typeof item == "boolean"){
					parent = Boolean;
				}
				if(parent){
					item = namespace[key] = new parent(item);
				}
			}


			item.__seen__ = true;
			item.__name__ = itemName;
			(dojox.help._names[root] = dojox.help._names[root] || []).push(itemName);
			items.push(item);
			if(!isFunction){
				dojox.help._overrides.push([namespace, key]);
			}


			if((isFunction || isObject) && recursive){
				dojox.help._recursions.push([item, root, itemName]);
			}


			if(isFunction){
				if(!item.__source__){
					item.__source__ = item.toString().replace(/^function\b ?/, "function " + itemName);
				}
				if(item.toString === Function.prototype.toString){
					item.toString = dojox.help._toString;
				}
			}


			if(!item.help){
				item.help = dojox.help._help;
			}
		}";s:7:"private";b:1;s:7:"summary";s:0:"";}s:16:"dojox.help._base";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}