diff options
author | kpdecker <kpdecker@gmail.com> | 2014-01-01 18:59:21 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-01-01 18:59:21 -0600 |
commit | 3c85720137c039cefc38046541f05731d151a506 (patch) | |
tree | 997f9d2330e90920f8c7978a98e5016f291efc44 /lib/handlebars/compiler/ast.js | |
parent | 4713abc8f1cbb3910cac878bbea1e14e329f6110 (diff) | |
download | handlebars.js-3c85720137c039cefc38046541f05731d151a506.zip handlebars.js-3c85720137c039cefc38046541f05731d151a506.tar.gz handlebars.js-3c85720137c039cefc38046541f05731d151a506.tar.bz2 |
Remove duplication from generated subexpressions
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index 6ccd7f1..09bf927 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -64,6 +64,8 @@ var AST = { this.sexpr = new AST.SexprNode(rawParams, hash); } + this.sexpr.isRoot = true; + // Support old AST API that stored this info in MustacheNode this.id = this.sexpr.id; this.params = this.sexpr.params; |