Fixed missing var in compiler code causing compilerWords to be global.
This commit is contained in:
@@ -727,7 +727,7 @@ Handlebars.JavaScriptCompiler = function() {};
|
||||
"for function if in instanceof new return switch this throw " +
|
||||
"try typeof var void while with null true false").split(" ");
|
||||
|
||||
compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};
|
||||
var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};
|
||||
|
||||
for(var i=0, l=reservedWords.length; i<l; i++) {
|
||||
compilerWords[reservedWords[i]] = true;
|
||||
|
||||
Reference in New Issue
Block a user