Skip to content

Commit

Permalink
utils: fix merging
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Mar 11, 2013
1 parent d4dcdbb commit 7d1116a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xjst/utils.js
Expand Up @@ -38,7 +38,7 @@ utils.hashName = function hashName(value) {
// //
utils.mergeWith = function mergeWith(template) { utils.mergeWith = function mergeWith(template) {
var cache = {}; var cache = {};
_c.$e = function(parents) { _c.$e = function(__$ctx, parents) {
var match = cache[parents[0]], var match = cache[parents[0]],
fn; fn;


Expand All @@ -57,7 +57,7 @@ utils.mergeWith = function mergeWith(template) {
fn = template.config[match] || template.apply; fn = template.config[match] || template.apply;
} }


return fn.call(this); return fn(__$ctx);
}; };
}; };


Expand Down

0 comments on commit 7d1116a

Please sign in to comment.