summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/ast.js
diff options
context:
space:
mode:
authorTommy Messbauer <tommy@vast.com>2013-02-11 22:50:23 -0600
committerTommy Messbauer <tommy@vast.com>2013-02-11 22:50:23 -0600
commit514c9391e0fbee8a0c8c184bcef77d6be38722aa (patch)
treeefe8e4fcc52d665bc085aa0e09bc1ab319836afa /lib/handlebars/compiler/ast.js
parentdb975b42a0ae295b6716700900a4724d97f1d9c6 (diff)
downloadhandlebars.js-514c9391e0fbee8a0c8c184bcef77d6be38722aa.zip
handlebars.js-514c9391e0fbee8a0c8c184bcef77d6be38722aa.tar.gz
handlebars.js-514c9391e0fbee8a0c8c184bcef77d6be38722aa.tar.bz2
restored scope of var verifyMatch
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r--lib/handlebars/compiler/ast.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js
index 9648ef0..27cd6cc 100644
--- a/lib/handlebars/compiler/ast.js
+++ b/lib/handlebars/compiler/ast.js
@@ -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;