applyTemplate : function(values){
try {
_t= this;
- if (this.url) {
- this.afterLoad = function () { _t.applyTemplate(values); };
- this.load();
- return;
- }
+
if(this.compiled){
return this.compiled(values);
}
success : function (response) {
_t.loading = false;
_t.html = response.responseText;
+ _t.url = false;
_t.afterLoad && _t.afterLoad();
},
failure : function(response) {