Inverse should really be its own node, as it has totally different runtime semantics

This commit is contained in:
wycats
2010-12-03 01:10:14 -05:00
parent 8f6f3051e6
commit c89ecf80a5
4 changed files with 31 additions and 8 deletions
+7 -2
View File
@@ -21,11 +21,16 @@ Handlebars.AST.PartialNode = function(id, context) {
this.context = context;
};
Handlebars.AST.BlockNode = function(mustache, program, inverted) {
Handlebars.AST.BlockNode = function(mustache, program) {
this.type = "block";
this.mustache = mustache;
this.program = program;
this.inverted = inverted;
};
Handlebars.AST.InverseNode = function(mustache, program) {
this.type = "inverse";
this.mustache = mustache;
this.program = program;
};
Handlebars.AST.ContentNode = function(string) {