diff options
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index e5904c6..1ecf59b 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -27,8 +27,8 @@ var AST = { this.path = path; this.params = params || []; this.hash = hash; - this.program = program; - this.inverse = inverse; + this.program = program; + this.inverse = inverse; this.openStrip = openStrip; this.inverseStrip = inverseStrip; @@ -76,8 +76,8 @@ var AST = { this.data = data; this.original = original; - this.parts = parts; - this.depth = depth; + this.parts = parts; + this.depth = depth; }, StringLiteral: function(string, locInfo) { @@ -130,7 +130,6 @@ var AST = { // a mustache is definitely a helper if: // * it is an eligible helper, and // * it has at least one parameter or hash segment - // TODO: Make these public utility methods helperExpression: function(node) { return !!(node.type === 'SubExpression' || node.params.length || node.hash); }, |