Inverse should really be its own node, as it has totally different runtime semantics
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user