Use the view registry instead of `Ember.View.views`
This commit is contained in:
parent
3d8cfac8bf
commit
438e1bc0a9
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue