Revert "GroupedEach helper fix for ember 1.8"

This reverts commit 3075ebf77c.
This commit is contained in:
Robin Ward 2014-10-27 15:57:29 -04:00
parent 0965baad72
commit caf31dde1e
1 changed files with 2 additions and 6 deletions

View File

@ -82,12 +82,8 @@ 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) {
var keywords = Em.get(data, 'keywords'); data.keywords = data.keywords || {};
if (!keywords) { data.keywords[keyword] = row;
keywords = {};
Em.set(data, 'keywords', keywords);
}
Em.set(keywords, keyword, row);
} }
template(row, { data: data }); template(row, { data: data });
} }