Roo/Template.js
[roojs1] / Roo / Template.js
index b415e80..96d1329 100644 (file)
@@ -44,7 +44,9 @@ Roo.Template = function(cfg){
         // bc
         this.html = cfg;
     }
-    
+    if (this.url) {
+        this.load();
+    }
     
 };
 Roo.Template.prototype = {
@@ -117,10 +119,11 @@ Roo.Template.prototype = {
         if (this.loading) {
             return;
         }
+        var _t = this;
         
         this.loading = true;
         this.compiled = false;
-        var _t = this;
+        
         var cx = new Roo.data.Connection();
         cx.request({
             url : this.url,