From ffe3f0fab6333847bd1ef9516e0a1401a06159ba Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Apr 2012 23:27:55 +0800 Subject: [PATCH] Roo/Template.js --- Roo/Template.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.39.2