Set stack to not be global.
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ Handlebars = {
|
||||
compile: function(string) {
|
||||
var compiler = new Handlebars.Compiler(string);
|
||||
var result = compiler.compile();
|
||||
return new Function("context", "fallback", "fallback = fallback || {}; stack = [];" + result);
|
||||
return new Function("context", "fallback", "fallback = fallback || {}; var stack = [];" + result);
|
||||
},
|
||||
|
||||
isFunction: function(fn) {
|
||||
|
||||
Reference in New Issue
Block a user