summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2011-07-29 22:45:16 -0500
committerkpdecker <kpdecker@gmail.com>2011-07-29 22:45:16 -0500
commit471f3b9748fe600387d226d4aaea09c95ddca1af (patch)
tree5a5171529aff9e9a9db2b242bd5d261a1c14c5ed /lib/handlebars/compiler.js
parenta927125909825a3fd9e696ac37f01b2e7fdf5560 (diff)
downloadhandlebars.js-471f3b9748fe600387d226d4aaea09c95ddca1af.zip
handlebars.js-471f3b9748fe600387d226d4aaea09c95ddca1af.tar.gz
handlebars.js-471f3b9748fe600387d226d4aaea09c95ddca1af.tar.bz2
Reduce scope of global variable
Diffstat (limited to 'lib/handlebars/compiler.js')
-rw-r--r--lib/handlebars/compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler.js b/lib/handlebars/compiler.js
index 843e0b9..641f31a 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);