diff options
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r-- | lib/handlebars/utils.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js index 3bc7e9b..7539039 100644 --- a/lib/handlebars/utils.js +++ b/lib/handlebars/utils.js @@ -53,11 +53,7 @@ Handlebars.SafeString.prototype.toString = function() { }, isEmpty: function(value) { - if (typeof value === "undefined") { - return true; - } else if (value === null) { - return true; - } else if (value === false) { + if (!value && value !== 0) { return true; } else if(Object.prototype.toString.call(value) === "[object Array]" && value.length === 0) { return true; |