diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-13 11:41:27 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-13 11:41:27 -0500 |
commit | f6dc5ad7163b8b7c51d9816afa39741f47313602 (patch) | |
tree | fd4be6bd57495d20c42cf0113757565c5708bbc4 /lib/handlebars/compiler/compiler.js | |
parent | 867322adf28a2babfa22c46558d388091b5756e8 (diff) | |
download | handlebars.js-f6dc5ad7163b8b7c51d9816afa39741f47313602.zip handlebars.js-f6dc5ad7163b8b7c51d9816afa39741f47313602.tar.gz handlebars.js-f6dc5ad7163b8b7c51d9816afa39741f47313602.tar.bz2 |
Create contextName helper for context lookup
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 131cb98..48575d4 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -214,7 +214,8 @@ Compiler.prototype = { if (partial.context) { this.accept(partial.context); } else { - this.opcode('push', 'depth0'); + this.opcode('getContext', 0); + this.opcode('pushContext'); } this.opcode('invokePartial', partialName.name, partial.indent || ''); |