Ensure isHelper is coerced to a boolean
This commit is contained in:
@@ -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 `..`)
|
||||
|
||||
Reference in New Issue
Block a user