diff options
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index e05ceec..05de762 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -79,11 +79,11 @@ var AST = { this.strip.inlineStandalone = true; }, - BlockNode: function(mustache, program, inverse, strip, locInfo) { + BlockNode: function(sexpr, program, inverse, strip, locInfo) { LocationInfo.call(this, locInfo); this.type = 'block'; - this.mustache = mustache; + this.sexpr = sexpr; this.program = program; this.inverse = inverse; this.strip = strip; @@ -93,17 +93,11 @@ var AST = { } }, - RawBlockNode: function(mustache, content, close, locInfo) { + RawBlockNode: function(sexpr, content, locInfo) { LocationInfo.call(this, locInfo); - if (mustache.sexpr.id.original !== close) { - throw new Exception(mustache.sexpr.id.original + " doesn't match " + close, this); - } - - content = new AST.ContentNode(content, locInfo); - this.type = 'block'; - this.mustache = mustache; + this.sexpr = sexpr; this.program = new AST.ProgramNode([content], {}, locInfo); }, |