REFACTOR: Missed `container`s in `DiscourseURL`
This commit is contained in:
parent
02e8d84e30
commit
4063cab8c2
|
@ -364,8 +364,7 @@ const DiscourseURL = EmberObject.extend({
|
|||
if (oldTopicId === newTopicId) {
|
||||
this.replaceState(path);
|
||||
|
||||
const container = Discourse.__container__;
|
||||
const topicController = container.lookup("controller:topic");
|
||||
const topicController = this.container.lookup("controller:topic");
|
||||
const opts = {};
|
||||
const postStream = topicController.get("model.postStream");
|
||||
|
||||
|
@ -438,15 +437,15 @@ const DiscourseURL = EmberObject.extend({
|
|||
},
|
||||
|
||||
get router() {
|
||||
return Discourse.__container__.lookup("router:main");
|
||||
return this.container.lookup("router:main");
|
||||
},
|
||||
|
||||
get appEvents() {
|
||||
return Discourse.__container__.lookup("service:app-events");
|
||||
return this.container.lookup("service:app-events");
|
||||
},
|
||||
|
||||
controllerFor(name) {
|
||||
return Discourse.__container__.lookup("controller:" + name);
|
||||
return this.container.lookup("controller:" + name);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue