diff options
author | kpdecker <kpdecker@gmail.com> | 2013-06-02 23:36:34 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-06-02 23:36:34 -0500 |
commit | 6174c3b6f8579a2bcb20f6c7ffba83f654fff0b1 (patch) | |
tree | d843df57f95a8b1c4dbe8cc463333ac6ac0464e3 /lib/handlebars/compiler | |
parent | 7def10195bf384861f976dc9a771bc42e892faf6 (diff) | |
download | handlebars.js-6174c3b6f8579a2bcb20f6c7ffba83f654fff0b1.zip handlebars.js-6174c3b6f8579a2bcb20f6c7ffba83f654fff0b1.tar.gz handlebars.js-6174c3b6f8579a2bcb20f6c7ffba83f654fff0b1.tar.bz2 |
Remove unnecessary function
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; |