diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js index 7d6c1ce2..583f88c2 100644 --- a/lib/handlebars/base.js +++ b/lib/handlebars/base.js @@ -86,8 +86,7 @@ Handlebars.registerHelper('each', function(context, fn, inverse) { }); Handlebars.registerHelper('if', function(context, fn, inverse) { - var condition = typeof context === "function" ? context.call(this) : context; - if(!condition || condition == []) { + if(!context || context == []) { return inverse(this); } else { return fn(this);