mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:03:13 +08:00
Revert "GroupedEach helper fix for ember 1.8"
This reverts commit 3075ebf77c
.
This commit is contained in:
parent
0965baad72
commit
caf31dde1e
|
@ -82,12 +82,8 @@ DiscourseGroupedEach.prototype = {
|
|||
for (var i = 0; i < contentLength; i++) {
|
||||
var row = content.objectAt(i);
|
||||
if (keyword) {
|
||||
var keywords = Em.get(data, 'keywords');
|
||||
if (!keywords) {
|
||||
keywords = {};
|
||||
Em.set(data, 'keywords', keywords);
|
||||
}
|
||||
Em.set(keywords, keyword, row);
|
||||
data.keywords = data.keywords || {};
|
||||
data.keywords[keyword] = row;
|
||||
}
|
||||
template(row, { data: data });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user