Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / dtl / ext-dojo / NodeList.js

History | View | Annotate | Download (749 Bytes)

1 9 andrej.cim
/*
2
        Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
3
        Available via Academic Free License >= 2.1 OR the modified BSD license.
4
        see: http://dojotoolkit.org/license for details
5
*/
6
7
8
if(!dojo._hasResource["dojox.dtl.ext-dojo.NodeList"]){
9
dojo._hasResource["dojox.dtl.ext-dojo.NodeList"]=true;
10
dojo.provide("dojox.dtl.ext-dojo.NodeList");
11
dojo.require("dojox.dtl._base");
12
dojo.extend(dojo.NodeList,{dtl:function(_1,_2){
13
var d=dojox.dtl;
14
var _3=this;
15
var _4=function(_5,_6){
16
var _7=_5.render(new d._Context(_6));
17
_3.forEach(function(_8){
18
_8.innerHTML=_7;
19
});
20
};
21
d.text._resolveTemplateArg(_1).addCallback(function(_9){
22
_1=new d.Template(_9);
23
d.text._resolveContextArg(_2).addCallback(function(_a){
24
_4(_1,_a);
25
});
26
});
27
return this;
28
}});
29
}