diff options
author | tomhuda <tomhuda@tilde.io> | 2013-01-18 16:42:27 -0800 |
---|---|---|
committer | tomhuda <tomhuda@tilde.io> | 2013-01-18 16:42:27 -0800 |
commit | ce82bef6f1b0321d8140ae2085200dab77a5e6db (patch) | |
tree | d6c9660cecc2c4c6214f9c8c8c554728a6718b09 /lib/handlebars/compiler/ast.js | |
parent | cd9895061bebd8342c344c3b846651b80145e2bf (diff) | |
download | handlebars.js-ce82bef6f1b0321d8140ae2085200dab77a5e6db.zip handlebars.js-ce82bef6f1b0321d8140ae2085200dab77a5e6db.tar.gz handlebars.js-ce82bef6f1b0321d8140ae2085200dab77a5e6db.tar.bz2 |
Boolean("false") === true
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index a8a6844..fd6cdc5 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -117,7 +117,7 @@ var Handlebars = require('./base'); Handlebars.AST.BooleanNode = function(bool) { this.type = "BOOLEAN"; this.bool = bool; - this.stringModeValue = Boolean(bool); + this.stringModeValue = bool === "true"; }; Handlebars.AST.CommentNode = function(comment) { |