Ensure isHelper is coerced to a boolean

This commit is contained in:
Martin Muñoz
2014-05-05 01:51:29 -04:00
parent 085e5e1937
commit 356ea1a909
+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 `..`)