summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/visitor.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-26 09:31:46 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-26 09:31:46 -0600
commit5cfe6a0be16a912a5f00af251753a3d5746a6577 (patch)
treef7e928767ddc051114770e379f90b387c8818895 /lib/handlebars/compiler/visitor.js
parentdf421f1e4b43773c61bc7c2c3cd06e0ff9ec4905 (diff)
downloadhandlebars.js-5cfe6a0be16a912a5f00af251753a3d5746a6577.zip
handlebars.js-5cfe6a0be16a912a5f00af251753a3d5746a6577.tar.gz
handlebars.js-5cfe6a0be16a912a5f00af251753a3d5746a6577.tar.bz2
Update MustacheNode for new AST structure
Diffstat (limited to 'lib/handlebars/compiler/visitor.js')
-rw-r--r--lib/handlebars/compiler/visitor.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/visitor.js b/lib/handlebars/compiler/visitor.js
index 12d822c..dc7f527 100644
--- a/lib/handlebars/compiler/visitor.js
+++ b/lib/handlebars/compiler/visitor.js
@@ -16,16 +16,16 @@ Visitor.prototype = {
}
},
+ MustacheStatement: function(mustache) {
+ this.accept(mustache.sexpr);
+ },
+
block: function(block) {
this.accept(block.mustache);
this.accept(block.program);
this.accept(block.inverse);
},
- mustache: function(mustache) {
- this.accept(mustache.sexpr);
- },
-
sexpr: function(sexpr) {
var params = sexpr.params, paramStrings = [], hash;