diff --git a/lib/handlebars/compiler.js b/lib/handlebars/compiler.js index 843e0b90..641f31a8 100644 --- a/lib/handlebars/compiler.js +++ b/lib/handlebars/compiler.js @@ -576,7 +576,7 @@ Handlebars.JavaScriptCompiler = function() {}; var paramString = ["context"].concat(params).join(", "); var helperMissingString = ["context"].concat(helperId).concat(params).join(", "); - nextStack = this.nextStack(); + var nextStack = this.nextStack(); this.source.push("if(typeof " + id + " === 'function') { " + nextStack + " = " + id + ".call(" + paramString + "); }"); fn.call(this, nextStack, helperMissingString, id);