Remove unnecessary function
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user