noop should return an empty String, not undefined

This commit is contained in:
wycats
2011-01-11 23:16:03 -08:00
parent fa5853079f
commit b7c649617b
+1 -1
View File
@@ -608,7 +608,7 @@ Handlebars.VM = {
return fn(context, helpers, partials);
};
},
noop: function() {},
noop: function() { return ""; },
compile: function(string) {
var ast = Handlebars.parse(string);
var environment = new Handlebars.Compiler().compile(ast);