1
2
3
4
5
6
7
8
9
| //>>built
| define("dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/query ../_base ../dom dojo/parser dojo/_base/sniff".split(" "),function(e,l,p,m,g,r,n,q){function h(a){var b=a.cloneNode(!0);q("ie")&&m("script",b).forEach("item.text \x3d this[index].text;",m("script",a));return b}var c=e.getObject("contrib.dijit",!0,g);c.AttachNode=e.extend(function(a,b){this._keys=a;this._object=b},{render:function(a,b){if(!this._rendered){this._rendered=!0;for(var d=0,c;c=this._keys[d];d++)a.getThis()[c]=this._object||
| b.getParent()}return b},unrender:function(a,b){if(this._rendered){this._rendered=!1;for(var d=0,c;c=this._keys[d];d++)a.getThis()[c]===(this._object||b.getParent())&&delete a.getThis()[c]}return b},clone:function(a){return new this.constructor(this._keys,this._object)}});c.EventNode=e.extend(function(a,b){this._command=a;for(var d=a.split(/\s*,\s*/),c=e.trim,f=[],g=[];a=d.pop();)if(a){var k=null;-1!=a.indexOf(":")?(k=a.split(":"),a=c(k[0]),k=c(k.slice(1).join(":"))):a=c(a);k||(k=a);f.push(a);g.push(k)}this._types=
| f;this._fns=g;this._object=b;this._rendered=[]},{_clear:!1,render:function(a,b){for(var d=0,c;c=this._types[d];d++){this._clear||this._object||(b.getParent()[c]=null);var f=this._fns[d],h;-1!=f.indexOf(" ")&&(this._rendered[d]&&(l.disconnect(this._rendered[d]),this._rendered[d]=!1),h=p.map(f.split(" ").slice(1),function(b){return(new g._Filter(b)).resolve(a)}),f=f.split(" ",2)[0]);this._rendered[d]||(this._object?(e.isArray(h),this._rendered[d]=l.connect(this._object,c,a.getThis(),f)):this._rendered[d]=
| b.addEvent(a,c,f,h))}this._clear=!0;return b},unrender:function(a,b){for(;this._rendered.length;)l.disconnect(this._rendered.pop());return b},clone:function(){return new this.constructor(this._command,this._object)}});c.DojoTypeNode=e.extend(function(a,b){this._node=a;this._parsed=b;var d=a.getAttribute("dojoAttachEvent")||a.getAttribute("data-dojo-attach-event");d&&(this._events=new c.EventNode(e.trim(d)));if(d=a.getAttribute("dojoAttachPoint")||a.getAttribute("data-dojo-attach-point"))this._attach=
| new c.AttachNode(e.trim(d).split(/\s*,\s*/));b?(a=h(a),b=c.widgetsInTemplate,c.widgetsInTemplate=!1,this._template=new g.DomTemplate(a),c.widgetsInTemplate=b):this._dijit=n.instantiate([h(a)])[0]},{render:function(a,b){if(this._parsed){var c=new g.DomBuffer;this._template.render(a,c);var c=h(c.getRootNode()),e=document.createElement("div");e.appendChild(c);var f=e.innerHTML;e.removeChild(c);f!=this._rendered&&(this._rendered=f,this._dijit&&this._dijit.destroyRecursive(),this._dijit=n.instantiate([c])[0])}c=
| this._dijit.domNode;this._events&&(this._events._object=this._dijit,this._events.render(a,b));this._attach&&(this._attach._object=this._dijit,this._attach.render(a,b));return b.concat(c)},unrender:function(a,b){return b.remove(this._dijit.domNode)},clone:function(){return new this.constructor(this._node,this._parsed)}});e.mixin(c,{widgetsInTemplate:!0,dojoAttachPoint:function(a,b){return new c.AttachNode(b.contents.slice(-1!==b.contents.indexOf("data-")?23:16).split(/\s*,\s*/))},dojoAttachEvent:function(a,
| b){return new c.EventNode(b.contents.slice(-1!==b.contents.indexOf("data-")?23:16))},dojoType:function(a,b){var d=!1;" parsed"==b.contents.slice(-7)&&(d=!0);b=-1!==b.contents.indexOf("data-")?b.contents.slice(15):b.contents.slice(9);b=d?b.slice(0,-7):b.toString();return c.widgetsInTemplate?(a=a.swallowNode(),a.setAttribute("data-dojo-type",b),new c.DojoTypeNode(a,d)):new g.AttributeNode("data-dojo-type",b)},on:function(a,b){a=b.contents.split();return new c.EventNode(a[0]+":"+a.slice(1).join(" "))}});
| c["data-dojo-type"]=c.dojoType;c["data-dojo-attach-point"]=c.dojoAttachPoint;c["data-dojo-attach-event"]=c.dojoAttachEvent;g.register.tags("dojox.dtl.contrib",{dijit:["attr:dojoType","attr:data-dojo-type","attr:dojoAttachPoint","attr:data-dojo-attach-point",["attr:attach","dojoAttachPoint"],["attr:attach","data-dojo-attach-point"],"attr:dojoAttachEvent","attr:data-dojo-attach-event",[/(attr:)?on(click|key(up))/i,"on"]]});return c});
|
|