mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:10:22 +08:00
Move insideGroup
into the helper, not the class for grouped each
This commit is contained in:
parent
cd3f2a5973
commit
df5cbf76e0
@ -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();
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user