Skip to content

Commit

Permalink
Fix incorrect variable removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 3, 2015
1 parent 324d615 commit fac71ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/throughput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fac71ce

Please sign in to comment.