block helper "with" should check for empty context

This commit is contained in:
John Freeman
2012-03-31 23:09:27 -05:00
parent 98b3327c75
commit 0872fb6699
+1 -1
View File
@@ -88,7 +88,7 @@ Handlebars.registerHelper('unless', function(context, options) {
});
Handlebars.registerHelper('with', function(context, options) {
return options.fn(context);
if (!Handlebars.Utils.isEmpty(context)) return options.fn(context);
});
Handlebars.registerHelper('log', function(context) {