diff options
author | kpdecker <kpdecker@gmail.com> | 2014-11-27 08:37:48 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-11-27 08:37:48 -0600 |
commit | 1124908d2a0d36493912eb2ce062545b1b5e5445 (patch) | |
tree | f6f8a5f5f0a96a6aa4152aeb576775021c390390 /lib/handlebars/compiler/javascript-compiler.js | |
parent | e1cba432a68fe208782f8f943ebd57d7641d705a (diff) | |
download | handlebars.js-1124908d2a0d36493912eb2ce062545b1b5e5445.zip handlebars.js-1124908d2a0d36493912eb2ce062545b1b5e5445.tar.gz handlebars.js-1124908d2a0d36493912eb2ce062545b1b5e5445.tar.bz2 |
Update subexpression and hash AST constructs
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index 2916a32..cde2ab5 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -460,7 +460,7 @@ JavaScriptCompiler.prototype = { // If it's a subexpression, the string result // will be pushed after this opcode. - if (type !== 'sexpr') { + if (type !== 'SubExpression') { if (typeof string === 'string') { this.pushString(string); } else { @@ -661,7 +661,7 @@ JavaScriptCompiler.prototype = { pushId: function(type, name) { if (type === 'PathExpression') { this.pushString(name); - } else if (type === 'sexpr') { + } else if (type === 'SubExpression') { this.pushStackLiteral('true'); } else { this.pushStackLiteral('null'); |