Prevent write on all depth variables

This commit is contained in:
kpdecker
2013-01-13 23:43:29 -06:00
parent 8961298859
commit 24fc3a2288
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -897,7 +897,7 @@ Handlebars.JavaScriptCompiler = function() {};
item = callback.call(this, stack);
// Prevent modification of the context depth variable. Through replaceStack
if (this.compileStack.length <= 1) {
if (/^depth/.test(stack)) {
stack = this.nextStack();
}