mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-04 11:10:04 -04:00
GroupedEach helper fix for ember 1.8
This commit is contained in:
parent
ff5c4550fb
commit
3075ebf77c
1 changed files with 6 additions and 2 deletions
|
@ -82,8 +82,12 @@ DiscourseGroupedEach.prototype = {
|
|||
for (var i = 0; i < contentLength; i++) {
|
||||
var row = content.objectAt(i);
|
||||
if (keyword) {
|
||||
data.keywords = data.keywords || {};
|
||||
data.keywords[keyword] = row;
|
||||
var keywords = Em.get(data, 'keywords');
|
||||
if (!keywords) {
|
||||
keywords = {};
|
||||
Em.set(data, 'keywords', keywords);
|
||||
}
|
||||
Em.set(keywords, keyword, row);
|
||||
}
|
||||
template(row, { data: data });
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue