Fix incorrect variable removal

This commit is contained in:
kpdecker
2015-08-03 17:59:23 -05:00
parent 324d615726
commit fac71ce700
+2 -2
View File
@@ -35,8 +35,8 @@ function makeSuite(bench, name, template, handlebarsOnly) {
var handlebar = Handlebars.compile(template.handlebars, {data: false}),
compat = Handlebars.compile(template.handlebars, {data: false, compat: true}),
options = {helpers: template.helpers};
_.each(template.partials && template.partials.handlebars, function(partial) {
Handlebars.registerPartial(name, Handlebars.compile(partial, {data: false}));
_.each(template.partials && template.partials.handlebars, function(partial, partialName) {
Handlebars.registerPartial(partialName, Handlebars.compile(partial, {data: false}));
});
handlebarsOut = handlebar(context, options);