mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Move insideGroup into the helper, not the class for grouped each
This commit is contained in:
@@ -78,8 +78,6 @@ DiscourseGroupedEach.prototype = {
|
||||
template = this.template;
|
||||
|
||||
data.insideEach = true;
|
||||
data.insideGroup = true;
|
||||
|
||||
for (var i = 0; i < contentLength; i++) {
|
||||
template(content.objectAt(i), { data: data });
|
||||
}
|
||||
@@ -124,5 +122,6 @@ Ember.Handlebars.registerHelper('groupedEach', function(path, options) {
|
||||
}
|
||||
|
||||
options.hash.dataSourceBinding = path;
|
||||
options.data.insideGroup = true;
|
||||
new DiscourseGroupedEach(this, path, options).render();
|
||||
});
|
||||
Reference in New Issue
Block a user