a:125:{s:9:"#provides";s:13:"dojox.dtl.dom";s:9:"#resource";s:10:"dtl/dom.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.dtl._base";}i:1;a:2:{i:0;s:6:"common";i:1;s:17:"dojox.dtl.Context";}}s:15:"dojox.dtl.BOOLS";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:22:"dojox.dtl.TOKEN_CHANGE";a:1:{s:7:"summary";s:0:"";}s:20:"dojox.dtl.TOKEN_ATTR";a:1:{s:7:"summary";s:0:"";}s:22:"dojox.dtl.TOKEN_CUSTOM";a:1:{s:7:"summary";s:0:"";}s:20:"dojox.dtl.TOKEN_NODE";a:1:{s:7:"summary";s:0:"";}s:21:"dojox.dtl.DomTemplate";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"obj";a:1:{s:4:"type";s:24:"String|DOMNode|dojo._Url";}}s:6:"source";s:541:" if(!obj.nodes){ var node = dojo.byId(obj); if(node && node.nodeType == 1){ dojo.forEach(["class", "src", "href", "name", "value"], function(item){ ddh._attributes[item] = true; }); obj = { nodes: [node] }; }else{ if(typeof obj == "object"){ obj = ddt.getTemplateString(obj); } obj = ddh.getTemplate(obj); } } var tokens = ddh.tokenize(obj.nodes); if(dd.tests){ this.tokens = tokens.slice(0); } var parser = new dd._DomParser(tokens); this.nodelist = parser.parse();";s:7:"summary";s:34:"Use this object for DOM templating";s:9:"classlike";b:1;}s:19:"dojox.dtl.DomBuffer";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"parent";a:1:{s:4:"type";s:4:"Node";}}s:6:"source";s:44:" this._parent = parent; this._cache = [];";s:7:"summary";s:30:"Allows the manipulation of DOM";s:11:"description";s:91:"Use this to append a child, change the parent, or change the attribute of the current node.";s:9:"classlike";b:1;}s:18:"dojox.dtl._DomNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:23:" this.contents = node;";s:7:"summary";s:22:"Places a node into DOM";s:9:"classlike";b:1;}s:22:"dojox.dtl._DomNodeList";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"nodes";a:1:{s:4:"type";s:6:"Node[]";}}s:6:"source";s:30:" this.contents = nodes || [];";s:7:"summary";s:39:"A list of any DOM-specific node objects";s:11:"description";s:134:"Any object that's used in the constructor or added through the push function much implement the render, unrender, and clone functions.";s:9:"classlike";b:1;}s:21:"dojox.dtl._DomVarNode";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"str";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:38:" this.contents = new dd._Filter(str);";s:7:"summary";s:36:"A node to be processed as a variable";s:11:"description";s:84:"Will render an object that supports the render function and the getRootNode function";s:9:"classlike";b:1;}s:20:"dojox.dtl.ChangeNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:2:"up";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}s:4:"root";a:1:{s:4:"type";s:7:"Bookean";}}s:6:"source";s:59:" this.contents = node; this.up = up; this.root = root;";s:7:"summary";s:41:"Changes the parent during render/unrender";s:9:"classlike";b:1;}s:23:"dojox.dtl.AttributeNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"key";a:1:{s:4:"type";s:0:"";}s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:317:" this.key = key; this.value = value; this.contents = value; if(this._pool[value]){ this.nodelist = this._pool[value]; }else{ if(!(this.nodelist = dd.quickFilter(value))){ this.nodelist = (new dd.Template(value, true)).nodelist; } this._pool[value] = this.nodelist; } this.contents = "";";s:7:"summary";s:19:"Works on attributes";s:9:"classlike";b:1;}s:22:"dojox.dtl._DomTextNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"str";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:70:" this.contents = document.createTextNode(str); this.upcoming = str;";s:7:"summary";s:48:"Adds a straight text node without any processing";s:9:"classlike";b:1;}s:20:"dojox.dtl._DomParser";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"tokens";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:25:" this.contents = tokens;";s:7:"summary";s:41:"Turn a simple array into a set of objects";s:11:"description";s:64:"This is also used by all tags to move through the list of nodes.";s:9:"classlike";b:1;}s:23:"dojox.dtl.BOOLS.checked";a:1:{s:7:"summary";s:0:"";}s:24:"dojox.dtl.BOOLS.disabled";a:1:{s:7:"summary";s:0:"";}s:24:"dojox.dtl.BOOLS.readonly";a:1:{s:7:"summary";s:0:"";}s:25:"dojox.dtl.dom._attributes";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:21:"dojox.dtl.dom._uppers";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:18:"dojox.dtl.dom._re4";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:21:"dojox.dtl.dom._reTrim";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:22:"dojox.dtl.dom._reSplit";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:25:"dojox.dtl.dom.getTemplate";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"text";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:3940:" if(typeof this._commentable == "undefined"){ // Check to see if the browser can handle comments this._commentable = false; var div = document.createElement("div"); div.innerHTML = ""; if(div.childNodes.length && div.childNodes[0].nodeType == 8 && div.childNodes[0].data == "comment"){ this._commentable = true; } } if(!this._commentable){ // Strip comments text = text.replace(//g, "$1"); } if(dojo.isIE){ text = text.replace(/\b(checked|disabled|readonly|style)="/g, 't$1="'); } text = text.replace(/\bstyle="/g, 'tstyle="'); var match; var table = dojo.isWebKit; var pairs = [ // Format: [enable, parent, allowed children (first for nesting), nestings] [true, "select", "option"], [table, "tr", "td|th"], [table, "thead", "tr", "th"], [table, "tbody", "tr", "td"], [table, "table", "tbody|thead|tr", "tr", "td"] ]; var replacements = []; // Some tags can't contain text. So we wrap the text in tags that they can have. for(var i = 0, pair; pair = pairs[i]; i++){ if(!pair[0]){ continue; } if(text.indexOf("<" + pair[1]) != -1){ var selectRe = new RegExp("<" + pair[1] + "(?:.|\n)*?>((?:.|\n)+?)", "ig"); tagLoop: while(match = selectRe.exec(text)){ // Do it like this to make sure we don't double-wrap var inners = pair[2].split("|"); var innerRe = []; for(var j = 0, inner; inner = inners[j]; j++){ innerRe.push("<" + inner + "(?:.|\n)*?>(?:.|\n)*?"); } var tags = []; var tokens = dojox.string.tokenize(match[1], new RegExp("(" + innerRe.join("|") + ")", "ig"), function(data){ var tag = /<(\w+)/.exec(data)[1]; if(!tags[tag]){ tags[tag] = true; tags.push(tag); } return {data: data}; }); if(tags.length){ var tag = (tags.length == 1) ? tags[0] : pair[2].split("|")[0]; var replace = []; for(var j = 0, jl = tokens.length; j < jl; j++) { var token = tokens[j]; if(dojo.isObject(token)){ replace.push(token.data); }else{ var stripped = token.replace(this._reTrim, ""); if(!stripped){ continue; } token = stripped.split(this._reSplit); for(var k = 0, kl = token.length; k < kl; k++){ var replacement = ""; for(var p = 2, pl = pair.length; p < pl; p++){ if(p == 2){ replacement += "<" + tag + ' dtlinstruction="{% ' + token[k].replace('"', '\\"') + ' %}">'; }else if(tag == pair[p]) { continue; }else{ replacement += "<" + pair[p] + ">"; } } replacement += "DTL"; for(var p = pair.length - 1; p > 1; p--){ if(p == 2){ replacement += ""; }else if(tag == pair[p]) { continue; }else{ replacement += ""; } } replace.push("\xFF" + replacements.length); replacements.push(replacement); } } } text = text.replace(match[1], replace.join("")); } } } } for(var i=replacements.length; i--;){ text = text.replace("\xFF" + i, replacements[i]); } var re = /\b([a-zA-Z_:][a-zA-Z0-9_\-\.:]*)=['"]/g; while(match = re.exec(text)){ var lower = match[1].toLowerCase(); if(lower == "dtlinstruction"){ continue; } if(lower != match[1]){ this._uppers[lower] = match[1]; } this._attributes[lower] = true; } var div = document.createElement("div"); div.innerHTML = text; var output = {nodes: []}; while(div.childNodes.length){ output.nodes.push(div.removeChild(div.childNodes[0])) } return output;";s:7:"summary";s:0:"";}s:38:"dojox.dtl.dom.getTemplate._commentable";a:3:{s:8:"instance";s:25:"dojox.dtl.dom.getTemplate";s:7:"private";b:1;s:7:"summary";s:0:"";}s:22:"dojox.dtl.dom.tokenize";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"nodes";a:1:{s:4:"type";s:4:"Node";}}s:6:"source";s:207:" var tokens = []; for(var i = 0, node; node = nodes[i++];){ if(node.nodeType != 1){ this.__tokenize(node, tokens); }else{ this._tokenize(node, tokens); } } return tokens;";s:7:"summary";s:0:"";}s:24:"dojox.dtl.dom._swallowed";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:23:"dojox.dtl.dom._tokenize";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"node";a:1:{s:4:"type";s:4:"Node";}s:6:"tokens";a:1:{s:4:"type";s:5:"Array";}}s:6:"source";s:3954:" var first = false; var swallowed = this._swallowed; var i, j, tag, child; if(!tokens.first){ // Try to efficiently associate tags that use an attribute to // remove the node from DOM (eg dojoType) so that we can efficiently // locate them later in the tokenizing. first = tokens.first = true; var tags = dd.register.getAttributeTags(); for(i = 0; tag = tags[i]; i++){ try{ (tag[2])({ swallowNode: function(){ throw 1; }}, new dd.Token(dd.TOKEN_ATTR, "")); }catch(e){ swallowed.push(tag); } } } for(i = 0; tag = swallowed[i]; i++){ var text = node.getAttribute(tag[0]); if(text){ var swallowed = false; var custom = (tag[2])({ swallowNode: function(){ swallowed = true; return node; }}, new dd.Token(dd.TOKEN_ATTR, tag[0] + " " + text)); if(swallowed){ if(node.parentNode && node.parentNode.removeChild){ node.parentNode.removeChild(node); } tokens.push([dd.TOKEN_CUSTOM, custom]); return; } } } var children = []; if(dojo.isIE && node.tagName == "SCRIPT"){ children.push({ nodeType: 3, data: node.text }); node.text = ""; }else{ for(i = 0; child = node.childNodes[i]; i++){ children.push(child); } } tokens.push([dd.TOKEN_NODE, node]); var change = false; if(children.length){ // Only do a change request if we need to tokens.push([dd.TOKEN_CHANGE, node]); change = true; } for(var key in this._attributes){ var clear = false; var value = ""; if(key == "class"){ value = node.className || value; }else if(key == "for"){ value = node.htmlFor || value; }else if(key == "value" && node.value == node.innerHTML){ // Sometimes .value is set the same as the contents of the item (button) continue; }else if(node.getAttribute){ value = node.getAttribute(key, 2) || value; if(key == "href" || key == "src"){ if(dojo.isIE){ var hash = location.href.lastIndexOf(location.hash); var href = location.href.substring(0, hash).split("/"); href.pop(); href = href.join("/") + "/"; if(value.indexOf(href) == 0){ value = value.replace(href, ""); } value = decodeURIComponent(value); } }else if(key == "tstyle"){ clear = key; // Placeholder because we can't use style key = "style"; }else if(dd.BOOLS[key.slice(1)] && dojo.trim(value)){ key = key.slice(1); }else if(this._uppers[key] && dojo.trim(value)){ clear = this._uppers[key]; // Replaced by lowercase } } if(clear){ // Clear out values that are different than will // be used in plugins node.setAttribute(clear, ""); node.removeAttribute(clear); } if(typeof value == "function"){ value = value.toString().replace(this._re4, "$1"); } if(!change){ // Only do a change request if we need to tokens.push([dd.TOKEN_CHANGE, node]); change = true; } // We'll have to resolve attributes during parsing (some ref plugins) tokens.push([dd.TOKEN_ATTR, node, key, value]); } for(i = 0, child; child = children[i]; i++){ if(child.nodeType == 1){ var instruction = child.getAttribute("dtlinstruction"); if(instruction){ child.parentNode.removeChild(child); child = { nodeType: 8, data: instruction }; } } this.__tokenize(child, tokens); } if(!first && node.parentNode && node.parentNode.tagName){ if(change){ tokens.push([dd.TOKEN_CHANGE, node, true]); } tokens.push([dd.TOKEN_CHANGE, node.parentNode]); node.parentNode.removeChild(node); }else{ // If this node is parentless, it's a base node, so we have to "up" change to itself // and note that it's a top-level to watch for errors tokens.push([dd.TOKEN_CHANGE, node, true, true]); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:24:"dojox.dtl.dom.__tokenize";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"child";a:1:{s:4:"type";s:0:"";}s:6:"tokens";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1099:" var data = child.data; switch(child.nodeType){ case 1: this._tokenize(child, tokens); return; case 3: if(data.match(/[^\s\n]/) && (data.indexOf("{{") != -1 || data.indexOf("{%") != -1)){ var texts = ddt.tokenize(data); for(var j = 0, text; text = texts[j]; j++){ if(typeof text == "string"){ tokens.push([dd.TOKEN_TEXT, text]); }else{ tokens.push(text); } } }else{ tokens.push([child.nodeType, child]); } if(child.parentNode) child.parentNode.removeChild(child); return; case 8: if(data.indexOf("{%") == 0){ var text = dojo.trim(data.slice(2, -2)); if(text.substr(0, 5) == "load "){ var parts = dojo.trim(text).split(/\s+/g); for(var i = 1, part; part = parts[i]; i++){ dojo["require"](part); } } tokens.push([dd.TOKEN_BLOCK, text]); } if(data.indexOf("{{") == 0){ tokens.push([dd.TOKEN_VAR, dojo.trim(data.slice(2, -2))]); } if(child.parentNode) child.parentNode.removeChild(child); return; }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:13:"dojox.dtl.dom";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomTemplate.tokens";a:2:{s:8:"instance";s:21:"dojox.dtl.DomTemplate";s:7:"summary";s:0:"";}s:30:"dojox.dtl.DomTemplate.nodelist";a:2:{s:8:"instance";s:21:"dojox.dtl.DomTemplate";s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomTemplate._count";a:3:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:7:"private";b:1;s:7:"summary";s:0:"";}s:25:"dojox.dtl.DomTemplate._re";a:3:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:7:"private";b:1;s:7:"summary";s:0:"";}s:30:"dojox.dtl.DomTemplate.setClass";a:5:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"str";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:38:" this.getRootNode().className = str;";s:7:"summary";s:0:"";}s:33:"dojox.dtl.DomTemplate.getRootNode";a:4:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:4:"type";s:8:"Function";s:6:"source";s:31:" return this.buffer.rootNode;";s:7:"summary";s:0:"";}s:31:"dojox.dtl.DomTemplate.getBuffer";a:4:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:4:"type";s:8:"Function";s:6:"source";s:29:" return new dd.DomBuffer();";s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomTemplate.render";a:5:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:289:" buffer = this.buffer = buffer || this.getBuffer(); this.rootNode = null; var output = this.nodelist.render(context || new dd.Context({}), buffer); for(var i = 0, node; node = buffer._cache[i]; i++){ if(node._cache){ node._cache.length = 0; } } return output;";s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomTemplate.buffer";a:2:{s:8:"instance";s:21:"dojox.dtl.DomTemplate";s:7:"summary";s:0:"";}s:30:"dojox.dtl.DomTemplate.rootNode";a:2:{s:8:"instance";s:21:"dojox.dtl.DomTemplate";s:7:"summary";s:0:"";}s:30:"dojox.dtl.DomTemplate.unrender";a:5:{s:9:"prototype";s:21:"dojox.dtl.DomTemplate";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:50:" return this.nodelist.unrender(context, buffer);";s:7:"summary";s:0:"";}s:27:"dojox.dtl.DomBuffer._parent";a:3:{s:8:"instance";s:19:"dojox.dtl.DomBuffer";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.dtl.DomBuffer._cache";a:3:{s:8:"instance";s:19:"dojox.dtl.DomBuffer";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.dtl.DomBuffer.concat";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:7:"DOMNode";}}s:6:"source";s:1177:" var parent = this._parent; if(parent && node.parentNode && node.parentNode === parent && !parent._dirty){ return this; } if(node.nodeType == 1 && !this.rootNode){ this.rootNode = node || true; return this; } if(!parent){ if(node.nodeType == 3 && dojo.trim(node.data)){ throw new Error("Text should not exist outside of the root node in template"); } return this; } if(this._closed){ if(node.nodeType == 3 && !dojo.trim(node.data)){ return this; }else{ throw new Error("Content should not exist outside of the root node in template"); } } if(parent._dirty){ if(node._drawn && node.parentNode == parent){ var caches = parent._cache; if(caches){ for(var i = 0, cache; cache = caches[i]; i++){ this.onAddNode && this.onAddNode(cache); parent.insertBefore(cache, node); this.onAddNodeComplete && this.onAddNodeComplete(cache); } caches.length = 0; } } parent._dirty = false; } if(!parent._cache){ parent._cache = []; this._cache.push(parent); } parent._dirty = true; parent._cache.push(node); return this;";s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomBuffer.rootNode";a:2:{s:8:"instance";s:19:"dojox.dtl.DomBuffer";s:7:"summary";s:0:"";}s:26:"dojox.dtl.DomBuffer.remove";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";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:399:" if(typeof obj == "string"){ if(this._parent){ this._parent.removeAttribute(obj); } }else{ if(obj.nodeType == 1 && !this.getRootNode() && !this._removed){ this._removed = true; return this; } if(obj.parentNode){ this.onRemoveNode && this.onRemoveNode(obj); if(obj.parentNode){ obj.parentNode.removeChild(obj); } } } return this;";s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomBuffer._removed";a:3:{s:8:"instance";s:19:"dojox.dtl.DomBuffer";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.dtl.DomBuffer.setAttribute";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"key";a:1:{s:4:"type";s:0:"";}s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:359:" var old = dojo.attr(this._parent, key); if(this.onChangeAttribute && old != value){ this.onChangeAttribute(this._parent, key, old, value); } if(key == "style"){ //console.log(value); this._parent.style.cssText = value; }else{ dojo.attr(this._parent, key, value); //console.log(this._parent, key, value); } return this;";s:7:"summary";s:0:"";}s:41:"dojox.dtl.DomBuffer._parent.style.cssText";a:3:{s:8:"instance";s:19:"dojox.dtl.DomBuffer";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:28:"dojox.dtl.DomBuffer.addEvent";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:4:"type";a:1:{s:4:"type";s:0:"";}s:2:"fn";a:1:{s:4:"type";s:0:"";}s:4:"args";a:1:{s:4:"type";s:14:"Array|Function";}}s:6:"source";s:366:" if(!context.getThis()){ throw new Error("You must use Context.setObject(instance)"); } this.onAddEvent && this.onAddEvent(this.getParent(), type, fn); var resolved = fn; if(dojo.isArray(args)){ resolved = function(e){ this[fn].apply(this, [e].concat(args)); } } return dojo.connect(this.getParent(), type, context.getThis(), resolved);";s:7:"summary";s:0:"";}s:29:"dojox.dtl.DomBuffer.setParent";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:2:"up";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}s:4:"root";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}}s:6:"source";s:1121:" if(!this._parent) this._parent = this._first = node; if(up && root && node === this._first){ this._closed = true; } if(up){ var parent = this._parent; var script = ""; var ie = dojo.isIE && parent.tagName == "SCRIPT"; if(ie){ parent.text = ""; } if(parent._dirty){ var caches = parent._cache; var select = (parent.tagName == "SELECT" && !parent.options.length); for(var i = 0, cache; cache = caches[i]; i++){ if(cache !== parent){ this.onAddNode && this.onAddNode(cache); if(ie){ script += cache.data; }else{ parent.appendChild(cache); if(select && cache.defaultSelected && i){ select = i; } } this.onAddNodeComplete && this.onAddNodeComplete(cache); } } if(select){ parent.options.selectedIndex = (typeof select == "number") ? select : 0; } caches.length = 0; parent._dirty = false; } if(ie){ parent.text = script; } } this._parent = node; this.onSetParent && this.onSetParent(node, up, root); return this;";s:7:"summary";s:0:"";}s:27:"dojox.dtl.DomBuffer._closed";a:3:{s:8:"instance";s:19:"dojox.dtl.DomBuffer";s:7:"private";b:1;s:7:"summary";s:0:"";}s:29:"dojox.dtl.DomBuffer.getParent";a:4:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:6:"source";s:23:" return this._parent;";s:7:"summary";s:0:"";}s:31:"dojox.dtl.DomBuffer.getRootNode";a:4:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:6:"source";s:24:" return this.rootNode;";s:7:"summary";s:0:"";}s:31:"dojox.dtl.DomBuffer.onSetParent";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:2:"up";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:50:" // summary: Stub called when setParent is used.";s:7:"summary";s:35:"Stub called when setParent is used.";}s:29:"dojox.dtl.DomBuffer.onAddNode";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:53:" // summary: Stub called before new nodes are added";s:7:"summary";s:38:"Stub called before new nodes are added";}s:37:"dojox.dtl.DomBuffer.onAddNodeComplete";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:52:" // summary: Stub called after new nodes are added";s:7:"summary";s:37:"Stub called after new nodes are added";}s:32:"dojox.dtl.DomBuffer.onRemoveNode";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:49:" // summary: Stub called when nodes are removed";s:7:"summary";s:34:"Stub called when nodes are removed";}s:37:"dojox.dtl.DomBuffer.onChangeAttribute";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}s:3:"old";a:1:{s:4:"type";s:0:"";}s:7:"updated";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:55:" // summary: Stub called when an attribute is changed";s:7:"summary";s:40:"Stub called when an attribute is changed";}s:32:"dojox.dtl.DomBuffer.onChangeData";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"node";a:1:{s:4:"type";s:0:"";}s:3:"old";a:1:{s:4:"type";s:0:"";}s:7:"updated";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:59:" // summary: Stub called when a data in a node is changed";s:7:"summary";s:44:"Stub called when a data in a node is changed";}s:27:"dojox.dtl.DomBuffer.onClone";a:5:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"from";a:2:{s:4:"type";s:7:"DOMNode";s:7:"summary";s:0:"";}s:2:"to";a:2:{s:4:"type";s:7:"DOMNode";s:7:"summary";s:0:"";}}s:6:"source";s:90:" // summary: Stub called when a node is duplicated // from: DOMNode // to: DOMNode";s:7:"summary";s:37:"Stub called when a node is duplicated";}s:30:"dojox.dtl.DomBuffer.onAddEvent";a:6:{s:9:"prototype";s:19:"dojox.dtl.DomBuffer";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"node";a:2:{s:4:"type";s:7:"DOMNode";s:7:"summary";s:0:"";}s:4:"type";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:0:"";}s:11:"description";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:0:"";}}s:6:"source";s:120:" // summary: Stub to call when you're adding an event // node: DOMNode // type: String // description: String";s:7:"summary";s:40:"Stub to call when you're adding an event";s:11:"description";s:6:"String";}s:27:"dojox.dtl._DomNode.contents";a:2:{s:8:"instance";s:18:"dojox.dtl._DomNode";s:7:"summary";s:0:"";}s:25:"dojox.dtl._DomNode.render";a:5:{s:9:"prototype";s:18:"dojox.dtl._DomNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:65:" this._rendered = true; return buffer.concat(this.contents);";s:7:"summary";s:0:"";}s:28:"dojox.dtl._DomNode._rendered";a:3:{s:8:"instance";s:18:"dojox.dtl._DomNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:27:"dojox.dtl._DomNode.unrender";a:5:{s:9:"prototype";s:18:"dojox.dtl._DomNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:114:" if(!this._rendered){ return buffer; } this._rendered = false; return buffer.remove(this.contents);";s:7:"summary";s:0:"";}s:24:"dojox.dtl._DomNode.clone";a:5:{s:9:"prototype";s:18:"dojox.dtl._DomNode";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:46:" return new this.constructor(this.contents);";s:7:"summary";s:0:"";}s:31:"dojox.dtl._DomNodeList.contents";a:2:{s:8:"instance";s:22:"dojox.dtl._DomNodeList";s:7:"summary";s:0:"";}s:27:"dojox.dtl._DomNodeList.push";a:5:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:28:" this.contents.push(node);";s:7:"summary";s:0:"";}s:30:"dojox.dtl._DomNodeList.unshift";a:5:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:31:" this.contents.unshift(node);";s:7:"summary";s:0:"";}s:29:"dojox.dtl._DomNodeList.render";a:5:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}s:8:"instance";a:1:{s:4:"type";s:4:"Node";}}s:6:"source";s:390:" buffer = buffer || dd.DomTemplate.prototype.getBuffer(); if(instance){ var parent = buffer.getParent(); } for(var i = 0; i < this.contents.length; i++){ buffer = this.contents[i].render(context, buffer); if(!buffer) throw new Error("Template node render functions must return their buffer"); } if(parent){ buffer.setParent(parent); } return buffer;";s:7:"summary";s:0:"";}s:34:"dojox.dtl._DomNodeList.dummyRender";a:5:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}s:6:"asNode";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:791:" var div = document.createElement("div"); var parent = buffer.getParent(); var old = parent._clone; // Tell the clone system to attach itself to our new div parent._clone = div; var nodelist = this.clone(buffer, div); if(old){ // Restore state if there was a previous clone parent._clone = old; }else{ // Remove if there was no clone parent._clone = null; } buffer = dd.DomTemplate.prototype.getBuffer(); nodelist.unshift(new dd.ChangeNode(div)); nodelist.unshift(new dd._DomNode(div)); nodelist.push(new dd.ChangeNode(div, true)); nodelist.render(context, buffer); if(asNode){ return buffer.getRootNode(); } var html = div.innerHTML; return (dojo.isIE) ? html.replace(/\s*_(dirty|clone)="[^"]*"/g, "") : html;";s:7:"summary";s:94:"A really expensive way of checking to see how a rendering will look. Used in the ifchanged tag";}s:31:"dojox.dtl._DomNodeList.unrender";a:5:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}s:8:"instance";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:330:" if(instance){ var parent = buffer.getParent(); } for(var i = 0; i < this.contents.length; i++){ buffer = this.contents[i].unrender(context, buffer); if(!buffer) throw new Error("Template node render functions must return their buffer"); } if(parent){ buffer.setParent(parent); } return buffer;";s:7:"summary";s:0:"";}s:28:"dojox.dtl._DomNodeList.clone";a:5:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:805:" var parent = buffer.getParent(); var contents = this.contents; var nodelist = new dd._DomNodeList(); var cloned = []; for(var i = 0; i < contents.length; i++){ var clone = contents[i].clone(buffer); if(clone instanceof dd.ChangeNode || clone instanceof dd._DomNode){ var item = clone.contents._clone; if(item){ clone.contents = item; }else if(parent != clone.contents && clone instanceof dd._DomNode){ var node = clone.contents; clone.contents = clone.contents.cloneNode(false); buffer.onClone && buffer.onClone(node, clone.contents); cloned.push(node); node._clone = clone.contents; } } nodelist.push(clone); } for(var i = 0, clone; clone = cloned[i]; i++){ clone._clone = null; } return nodelist;";s:7:"summary";s:83:"Used to create an identical copy of a NodeList, useful for things like the for tag.";}s:28:"dojox.dtl._DomNodeList.rtrim";a:4:{s:9:"prototype";s:22:"dojox.dtl._DomNodeList";s:4:"type";s:8:"Function";s:6:"source";s:211:" while(1){ var i = this.contents.length - 1; if(this.contents[i] instanceof dd._DomTextNode && this.contents[i].isEmpty()){ this.contents.pop(); }else{ break; } } return this;";s:7:"summary";s:0:"";}s:30:"dojox.dtl._DomVarNode.contents";a:2:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"summary";s:0:"";}s:28:"dojox.dtl._DomVarNode.render";a:5:{s:9:"prototype";s:21:"dojox.dtl._DomVarNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:2209:" var str = this.contents.resolve(context); // What type of rendering? var type = "text"; if(str){ if(str.render && str.getRootNode){ type = "injection"; }else if(str.safe){ if(str.nodeType){ type = "node"; }else if(str.toString){ str = str.toString(); type = "html"; } } } // Has the typed changed? if(this._type && type != this._type){ this.unrender(context, buffer); } this._type = type; // Now render switch(type){ case "text": this._rendered = true; this._txt = this._txt || document.createTextNode(str); if(this._txt.data != str){ var old = this._txt.data; this._txt.data = str; buffer.onChangeData && buffer.onChangeData(this._txt, old, this._txt.data); } return buffer.concat(this._txt); case "injection": var root = str.getRootNode(); if(this._rendered && root != this._root){ buffer = this.unrender(context, buffer); } this._root = root; var injected = this._injected = new dd._DomNodeList(); injected.push(new dd.ChangeNode(buffer.getParent())); injected.push(new dd._DomNode(root)); injected.push(str); injected.push(new dd.ChangeNode(buffer.getParent())); this._rendered = true; return injected.render(context, buffer); case "node": this._rendered = true; if(this._node && this._node != str && this._node.parentNode && this._node.parentNode === buffer.getParent()){ this._node.parentNode.removeChild(this._node); } this._node = str; return buffer.concat(str); case "html": if(this._rendered && this._src != str){ buffer = this.unrender(context, buffer); } this._src = str; // This can get reset in the above tag if(!this._rendered){ this._rendered = true; this._html = this._html || []; var div = (this._div = this._div || document.createElement("div")); div.innerHTML = str; var children = div.childNodes; while(children.length){ var removed = div.removeChild(children[0]); this._html.push(removed); buffer = buffer.concat(removed); } } return buffer; default: return buffer; }";s:7:"summary";s:0:"";}s:27:"dojox.dtl._DomVarNode._type";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dojox.dtl._DomVarNode._rendered";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.dtl._DomVarNode._txt";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dojox.dtl._DomVarNode._txt.data";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:27:"dojox.dtl._DomVarNode._root";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dojox.dtl._DomVarNode._injected";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:38:"dojox.dtl._DomVarNode._node.parentNode";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:27:"dojox.dtl._DomVarNode._node";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.dtl._DomVarNode._src";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:27:"dojox.dtl._DomVarNode._html";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.dtl._DomVarNode._div";a:3:{s:8:"instance";s:21:"dojox.dtl._DomVarNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:30:"dojox.dtl._DomVarNode.unrender";a:5:{s:9:"prototype";s:21:"dojox.dtl._DomVarNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:561:" if(!this._rendered){ return buffer; } this._rendered = false; // Unrender injected nodes switch(this._type){ case "text": return buffer.remove(this._txt); case "injection": return this._injection.unrender(context, buffer); case "node": if(this._node.parentNode === buffer.getParent()){ return buffer.remove(this._node); } return buffer; case "html": for(var i=0, l=this._html.length; i