diff options
author | kpdecker <kpdecker@gmail.com> | 2013-10-14 22:49:34 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-10-14 22:49:34 -0500 |
commit | 06d94fed56b43bdf0c824bdce966596e551d3324 (patch) | |
tree | bd0ecf64c001520647253aba16731fa2bd3e8ad3 /lib/handlebars/compiler/javascript-compiler.js | |
parent | 6f94fc0a3be36bd32babd70680bfcb1195dafc30 (diff) | |
download | handlebars.js-06d94fed56b43bdf0c824bdce966596e551d3324.zip handlebars.js-06d94fed56b43bdf0c824bdce966596e551d3324.tar.gz handlebars.js-06d94fed56b43bdf0c824bdce966596e551d3324.tar.bz2 |
Fix argument not found error
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 b631372..283c20c 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 + '.call(depth0, options) : ' + nextStack + '; }'); + this.source.push('else { ' + nextStack + ' = ' + nonHelper + '; ' + nextStack + ' = typeof ' + nextStack + ' === functionType ? ' + nextStack + '.call(' + helper.callParams + ') : ' + nextStack + '; }'); }, // [invokePartial] |