webui-aria2/js/libs/dojox/dtl/Inline.js
2012-05-01 19:52:07 +08:00

23 lines
812 B
JavaScript

//>>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;
});