Skip to content

Commit

Permalink
fix intermittent bad handlebars context
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Apr 26, 2012
1 parent b1ac0a7 commit 234827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/templating/deftemplate.js
Expand Up @@ -8,7 +8,7 @@
var orig = Handlebars._default_helpers.each;
Handlebars._default_helpers.each = function (arg, options) {
if (!(arg instanceof LocalCollection.Cursor))
return orig(arg, options);
return orig.call(this, arg, options);

return Meteor.ui.listChunk(arg, options.fn, options.inverse, null);
};
Expand Down

0 comments on commit 234827b

Please sign in to comment.