diff --git a/changelog.txt b/changelog.txt index 8b052e6..aede858 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ - added Total.remote('wss_totaljs_code_url') method for remote editing of the source-code - added a better support for `*:tagname` prefixes in HTMLParser - fixed context in the components +- fixed URL downloading templates in `TEMPLATE()` method ======================== 0.0.7 diff --git a/templates.js b/templates.js index 97bf94c..7790b19 100644 --- a/templates.js +++ b/templates.js @@ -35,7 +35,7 @@ exports.render = function(body, model, $) { var opt = {}; opt.url = body; opt.method = 'GET'; - opt.$ = function(err, response) { + opt.callback = function(err, response) { if (err) { if ($ && $.invalid)