From: Alan Knowles Date: Fri, 6 Apr 2012 15:27:55 +0000 (+0800) Subject: Roo/Template.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=ffe3f0fab6333847bd1ef9516e0a1401a06159ba Roo/Template.js --- diff --git a/Roo/Template.js b/Roo/Template.js index 9bf53bb363..a04b2612e7 100644 --- a/Roo/Template.js +++ b/Roo/Template.js @@ -64,7 +64,12 @@ Roo.Template.prototype = { */ applyTemplate : function(values){ try { - if () + _t= this; + if (this.url) { + this.afterLoad = function () { _t.applyTemplate(values); }; + this.load(); + return; + } if(this.compiled){ return this.compiled(values); } @@ -106,7 +111,7 @@ Roo.Template.prototype = { afterLoad : false, - load : function (url, success) + load : function (success) { this.afterLoad = success;