From 471f3b9748fe600387d226d4aaea09c95ddca1af Mon Sep 17 00:00:00 2001 From: kpdecker Date: Fri, 29 Jul 2011 22:45:16 -0500 Subject: [PATCH] Reduce scope of global variable --- lib/handlebars/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);