summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/ast.js
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-12-15 23:42:53 -0800
committerwycats <wycats@gmail.com>2010-12-15 23:42:53 -0800
commite15d675a64c7bf2c28fc52fb655705462ed60cbb (patch)
tree3ebf470cca34b042049d90f89b8792513ae95979 /lib/handlebars/ast.js
parentec948c7382603b88a6e80ab949120cca2b64fb5f (diff)
downloadhandlebars.js-e15d675a64c7bf2c28fc52fb655705462ed60cbb.zip
handlebars.js-e15d675a64c7bf2c28fc52fb655705462ed60cbb.tar.gz
handlebars.js-e15d675a64c7bf2c28fc52fb655705462ed60cbb.tar.bz2
Everything is working now on the new VM except for partials and inverse sections
Diffstat (limited to 'lib/handlebars/ast.js')
-rw-r--r--lib/handlebars/ast.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/handlebars/ast.js b/lib/handlebars/ast.js
index 932e52c..f42e47c 100644
--- a/lib/handlebars/ast.js
+++ b/lib/handlebars/ast.js
@@ -64,8 +64,9 @@ Handlebars.Exception = require("handlebars/utils").Exception;
else { dig.push(part); }
}
- this.parts = dig;
- this.depth = depth;
+ this.parts = dig;
+ this.depth = depth;
+ this.isSimple = (dig.length === 1) && (depth === 0)
};
Handlebars.AST.StringNode = function(string) {