Merge pull request #793 from mmun/ast-tweaks

Ensure isHelper is coerced to a boolean
This commit is contained in:
Kevin Decker
2014-05-19 21:56:24 -05:00
+1 -1
View File
@@ -86,7 +86,7 @@ var AST = {
// a mustache is definitely a helper if:
// * it is an eligible helper, and
// * it has at least one parameter or hash segment
this.isHelper = params.length || hash;
this.isHelper = !!(params.length || hash);
// a mustache is an eligible helper if:
// * its id is simple (a single part, not `this` or `..`)