diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-15 00:37:57 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-15 00:37:57 -0500 |
commit | d05245b5f5ff71ead88075b20939c2c481166643 (patch) | |
tree | 56d1b61c7478491726e394252b90a4d3a15dc0ca /lib/handlebars/compiler/javascript-compiler.js | |
parent | 084e8fe1b77f4e9a327ce745aa7bb58c812e3510 (diff) | |
download | handlebars.js-d05245b5f5ff71ead88075b20939c2c481166643.zip handlebars.js-d05245b5f5ff71ead88075b20939c2c481166643.tar.gz handlebars.js-d05245b5f5ff71ead88075b20939c2c481166643.tar.bz2 |
Make depthed lookup call non-literal
Prevents duplicate calls from being made.
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index 00402ba..9fdef1d 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -369,7 +369,7 @@ JavaScriptCompiler.prototype = { if (!scoped && this.options.compat && !this.lastContext) { // The depthed query is expected to handle the undefined logic for the root level that // is implemented below, so we evaluate that directly in compat mode - this.pushStackLiteral(this.depthedLookup(parts[i++])); + this.push(this.depthedLookup(parts[i++])); } else { this.pushContext(); } |