Roo/DomTemplate.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 10 Apr 2012 10:53:18 +0000 (18:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 10 Apr 2012 10:53:18 +0000 (18:53 +0800)
Roo/DomTemplate.js

index b6cd10a..78baefb 100644 (file)
@@ -170,7 +170,7 @@ Roo.extend(Roo.DomTemplate, Roo.Template, {
         
         
         
-        tpls.push({
+        this.tpls.push({
             id:     attr == 'name' ? value : id,
             target: name,
             exec:   exec,
@@ -248,13 +248,7 @@ Roo.extend(Roo.DomTemplate, Roo.Template, {
             }
             ++id;
         }
-        this.tpls = [];
-        for(var i = tpls.length-1; i >= 0; --i){
-            this.compileTpl(tpls[i]);
-            this.tpls[tpls[i].id] = tpls[i];
-        }
-        this.master = tpls[tpls.length-1];
-        return this;
+        
     },
     /**
      * same as applyTemplate, except it's done to one of the subTemplates