From caf31dde1e1e152763ab1bac1695be12b84fee1d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 27 Oct 2014 15:57:29 -0400 Subject: [PATCH] Revert "GroupedEach helper fix for ember 1.8" This reverts commit 3075ebf77c281cbb8473d0410a10a72a62cb31c0. --- .../javascripts/discourse/helpers/grouped-each.js.es6 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/helpers/grouped-each.js.es6 b/app/assets/javascripts/discourse/helpers/grouped-each.js.es6 index b40b6706b02..b8d80ff400a 100644 --- a/app/assets/javascripts/discourse/helpers/grouped-each.js.es6 +++ b/app/assets/javascripts/discourse/helpers/grouped-each.js.es6 @@ -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 }); }