Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

utils: fix merging

  • Loading branch information...
commit 7d1116a4db34c3902fd05d620fec1e6b2b272c49 1 parent d4dcdbb
@indutny indutny authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/xjst/utils.js
View
4 lib/xjst/utils.js
@@ -38,7 +38,7 @@ utils.hashName = function hashName(value) {
//
utils.mergeWith = function mergeWith(template) {
var cache = {};
- _c.$e = function(parents) {
+ _c.$e = function(__$ctx, parents) {
var match = cache[parents[0]],
fn;
@@ -57,7 +57,7 @@ utils.mergeWith = function mergeWith(template) {
fn = template.config[match] || template.apply;
}
- return fn.call(this);
+ return fn(__$ctx);
};
};
Please sign in to comment.
Something went wrong with that request. Please try again.