summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/ast.js
diff options
context:
space:
mode:
authortomhuda <tomhuda@tilde.io>2012-05-28 19:06:26 -0700
committertomhuda <tomhuda@tilde.io>2012-05-28 19:06:26 -0700
commit0afc8b58d218d6220d5efdd2509754d13d9e1c55 (patch)
tree30c6bc9ddc743c13bbe69295f09bef9c1df5ca3a /lib/handlebars/compiler/ast.js
parent1082ec2414e7d9c0cd5dcafa0dfa5510e3b1ed60 (diff)
downloadhandlebars.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.js4
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) {