diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/handlebars/base.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js index 9a75ada..b1cc4ba 100644 --- a/lib/handlebars/base.js +++ b/lib/handlebars/base.js @@ -80,7 +80,7 @@ Handlebars.registerHelper('each', function(context, fn, inverse) { }); Handlebars.registerHelper('if', function(context, fn, inverse) { - if(!context || context == []) { + if(!context || Handlebars.Utils.isEmpty(context)) { return inverse(this); } else { return fn(this); |