diff options
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index c99728c..567e297 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -38,13 +38,10 @@ Handlebars.AST.PartialNode = function(partialName, context) { }; Handlebars.AST.BlockNode = function(mustache, program, inverse, close) { - var verifyMatch = function(open, close) { - if(open.original !== close.original) { - throw new Handlebars.Exception(open.original + " doesn't match " + close.original); - } - }; + if(mustache.id.original !== close.original) { + throw new Handlebars.Exception(mustache.id.original + " doesn't match " + close.original); + } - verifyMatch(mustache.id, close); this.type = "block"; this.mustache = mustache; this.program = program; |