Move `insideGroup` into the helper, not the class for grouped each

This commit is contained in:
Robin Ward 2013-08-30 10:43:54 -04:00
parent cd3f2a5973
commit df5cbf76e0
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,6 @@ DiscourseGroupedEach.prototype = {
template = this.template; template = this.template;
data.insideEach = true; data.insideEach = true;
data.insideGroup = true;
for (var i = 0; i < contentLength; i++) { for (var i = 0; i < contentLength; i++) {
template(content.objectAt(i), { data: data }); template(content.objectAt(i), { data: data });
} }
@ -124,5 +122,6 @@ Ember.Handlebars.registerHelper('groupedEach', function(path, options) {
} }
options.hash.dataSourceBinding = path; options.hash.dataSourceBinding = path;
options.data.insideGroup = true;
new DiscourseGroupedEach(this, path, options).render(); new DiscourseGroupedEach(this, path, options).render();
}); });