inserting missing return statement in unless helper (fixes issue #51)

This commit is contained in:
Tim Fischbach
2011-03-09 11:51:00 +01:00
parent ca9b9671a5
commit a1b1b160cf
+1 -1
View File
@@ -94,7 +94,7 @@ Handlebars.registerHelper('if', function(context, fn, inverse) {
});
Handlebars.registerHelper('unless', function(context, fn, inverse) {
Handlebars.helpers['if'].call(this, context, inverse, fn);
return Handlebars.helpers['if'].call(this, context, inverse, fn);
});
Handlebars.registerHelper('with', function(context, fn) {