diff options
author | tomhuda <tomhuda@tilde.io> | 2012-05-28 19:06:26 -0700 |
---|---|---|
committer | tomhuda <tomhuda@tilde.io> | 2012-05-28 19:06:26 -0700 |
commit | 0afc8b58d218d6220d5efdd2509754d13d9e1c55 (patch) | |
tree | 30c6bc9ddc743c13bbe69295f09bef9c1df5ca3a /lib/handlebars/compiler/ast.js | |
parent | 1082ec2414e7d9c0cd5dcafa0dfa5510e3b1ed60 (diff) | |
download | handlebars.js-0afc8b58d218d6220d5efdd2509754d13d9e1c55.zip handlebars.js-0afc8b58d218d6220d5efdd2509754d13d9e1c55.tar.gz handlebars.js-0afc8b58d218d6220d5efdd2509754d13d9e1c55.tar.bz2 |
Clean up parser tests and AST printer
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index 8381ca5..d61377e 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -54,6 +54,10 @@ var Handlebars = require('./base'); this.mustache = mustache; this.program = program; this.inverse = inverse; + + if (this.inverse && !this.program) { + this.isInverse = true; + } }; Handlebars.AST.ContentNode = function(string) { |