diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 97e8c91..48a3db5 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -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(); } |