FIX: Component was not refreshing all the time

This commit is contained in:
Robin Ward 2014-02-07 14:16:34 -05:00
parent 58247a51e8
commit 9db044d54b
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ Discourse.BasicTopicListComponent = Ember.Component.extend({
_topicListChanged: function() {
this._initFromTopicList(this.get('topicList'));
}.observes('topicList'),
}.observes('topicList.@each'),
_initFromTopicList: function(topicList) {
if (topicList !== null) {
@ -27,6 +27,7 @@ Discourse.BasicTopicListComponent = Ember.Component.extend({
topics: topicList.get('topics'),
sortOrder: topicList.get('sortOrder')
});
this.rerender();
}
},