restored scope of var verifyMatch

This commit is contained in:
Tommy Messbauer
2013-02-11 22:50:23 -06:00
parent db975b42a0
commit 514c9391e0
+6 -6
View File
@@ -41,13 +41,13 @@ Handlebars.AST.PartialNode = function(id, context) {
this.context = context;
};
var verifyMatch = function(open, close) {
if(open.original !== close.original) {
throw new Handlebars.Exception(open.original + " doesn't match " + close.original);
}
};
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);
}
};
verifyMatch(mustache.id, close);
this.type = "block";
this.mustache = mustache;