Skip to content

Commit fac71ce

Browse files
committed
Fix incorrect variable removal
1 parent 324d615 commit fac71ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bench/throughput.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function makeSuite(bench, name, template, handlebarsOnly) {
3535
var handlebar = Handlebars.compile(template.handlebars, {data: false}),
3636
compat = Handlebars.compile(template.handlebars, {data: false, compat: true}),
3737
options = {helpers: template.helpers};
38-
_.each(template.partials && template.partials.handlebars, function(partial) {
39-
Handlebars.registerPartial(name, Handlebars.compile(partial, {data: false}));
38+
_.each(template.partials && template.partials.handlebars, function(partial, partialName) {
39+
Handlebars.registerPartial(partialName, Handlebars.compile(partial, {data: false}));
4040
});
4141

4242
handlebarsOut = handlebar(context, options);

0 commit comments

Comments
 (0)