phpldapadmin/application/media/js/dojo-release-1.7.2/dojox/dtl/Inline.js

23 lines
812 B
JavaScript
Raw Permalink Normal View History

2012-06-19 02:07:43 +00:00
//>>built
define("dojox/dtl/Inline",["dojo/_base/lang","./_base","dijit/_WidgetBase","dojo/query"],function(_1,dd,_2,_3){
dd.Inline=_1.extend(function(_4,_5){
this.create(_4,_5);
},_2.prototype,{context:null,render:function(_6){
this.context=_6||this.context;
this.postMixInProperties();
_3("*",this.domNode).orphan();
this.domNode.innerHTML=this.template.render(this.context);
},declaredClass:"dojox.dtl.Inline",buildRendering:function(){
var _7=this.domNode=document.createElement("div");
var _8=this.srcNodeRef;
if(_8.parentNode){
_8.parentNode.replaceChild(_7,_8);
}
this.template=new dd.Template(_1.trim(_8.text),true);
this.render();
},postMixInProperties:function(){
this.context=(this.context.get===dd._Context.prototype.get)?this.context:new dd._Context(this.context);
}});
return dojox.dtl.Inline;
});