summaryrefslogtreecommitdiffstats
path: root/lib/handlebars
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars')
-rw-r--r--lib/handlebars/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js
index 44a369c..b8e11eb 100644
--- a/lib/handlebars/base.js
+++ b/lib/handlebars/base.js
@@ -137,7 +137,7 @@ Handlebars.registerHelper('if', function(conditional, options) {
var type = toString.call(conditional);
if(type === functionType) { conditional = conditional.call(this); }
- if(!conditional || Handlebars.Utils.isEmpty(conditional)) {
+ if(Handlebars.Utils.isEmpty(conditional)) {
return options.inverse(this);
} else {
return options.fn(this);