GroupedEach helper fix for ember 1.8
This commit is contained in:
parent
ff5c4550fb
commit
3075ebf77c
|
@ -82,8 +82,12 @@ DiscourseGroupedEach.prototype = {
|
||||||
for (var i = 0; i < contentLength; i++) {
|
for (var i = 0; i < contentLength; i++) {
|
||||||
var row = content.objectAt(i);
|
var row = content.objectAt(i);
|
||||||
if (keyword) {
|
if (keyword) {
|
||||||
data.keywords = data.keywords || {};
|
var keywords = Em.get(data, 'keywords');
|
||||||
data.keywords[keyword] = row;
|
if (!keywords) {
|
||||||
|
keywords = {};
|
||||||
|
Em.set(data, 'keywords', keywords);
|
||||||
|
}
|
||||||
|
Em.set(keywords, keyword, row);
|
||||||
}
|
}
|
||||||
template(row, { data: data });
|
template(row, { data: data });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue