Use the view registry instead of `Ember.View.views`

This commit is contained in:
Robin Ward 2016-11-21 15:31:14 -05:00
parent 3d8cfac8bf
commit 438e1bc0a9
1 changed files with 5 additions and 2 deletions

View File

@ -209,9 +209,12 @@ export default {
sendToTopicListItemView(action) {
const elem = $('tr.selected.topic-list-item.ember-view')[0];
if (elem) {
const view = Ember.View.views[elem.id];
const registry = this.container.lookup('-view-registry:main');
if (registry) {
const view = registry[elem.id];
view.send(action);
}
}
},
currentTopic() {