diff options
author | kpdecker <kpdecker@gmail.com> | 2013-10-14 21:32:17 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-10-14 21:32:17 -0500 |
commit | 2cd0995f2158371dc83590281839af9edca2c90a (patch) | |
tree | 5ccdbaaa64180f63dace5ad93b2e91075dc877b2 /lib/handlebars/compiler/javascript-compiler.js | |
parent | 9218f2e1ef88f5a6042f9e0bdb0c3c45922a32bf (diff) | |
parent | 4fda71364ede88eaff126ac3eeb18496f10f8725 (diff) | |
download | handlebars.js-2cd0995f2158371dc83590281839af9edca2c90a.zip handlebars.js-2cd0995f2158371dc83590281839af9edca2c90a.tar.gz handlebars.js-2cd0995f2158371dc83590281839af9edca2c90a.tar.bz2 |
Merge branch 'laurie71-fix-issue-599'
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index a81a99c..b631372 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -499,7 +499,7 @@ JavaScriptCompiler.prototype = { var nextStack = this.nextStack(); this.source.push('if (' + nextStack + ' = ' + helperName + ') { ' + nextStack + ' = ' + nextStack + '.call(' + helper.callParams + '); }'); - this.source.push('else { ' + nextStack + ' = ' + nonHelper + '; ' + nextStack + ' = typeof ' + nextStack + ' === functionType ? ' + nextStack + '.apply(depth0) : ' + nextStack + '; }'); + this.source.push('else { ' + nextStack + ' = ' + nonHelper + '; ' + nextStack + ' = typeof ' + nextStack + ' === functionType ? ' + nextStack + '.call(depth0, options) : ' + nextStack + '; }'); }, // [invokePartial] |