Reduce scope of global variable

This commit is contained in:
kpdecker
2011-07-29 22:45:16 -05:00
parent a927125909
commit 471f3b9748
+1 -1
View File
@@ -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);