mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
DEV: s/this._super()/this._super(...arguments) (#6908)
This commit is contained in:
@ -7,7 +7,7 @@ function initialize(api) {
|
||||
|
||||
api.modifyClass("component:site-header", {
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
this._super(...arguments);
|
||||
this.dispatch("header:search-context-trigger", "header");
|
||||
}
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ export default Ember.Controller.extend({
|
||||
closedPollResult: "on_close",
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
this._super(...arguments);
|
||||
this._setupPoll();
|
||||
},
|
||||
|
||||
|
@ -8,7 +8,7 @@ function initializePolls(api) {
|
||||
|
||||
api.modifyClass("controller:topic", {
|
||||
subscribe() {
|
||||
this._super();
|
||||
this._super(...arguments);
|
||||
this.messageBus.subscribe("/polls/" + this.get("model.id"), msg => {
|
||||
const post = this.get("model.postStream").findLoadedPost(msg.post_id);
|
||||
if (post) {
|
||||
@ -18,7 +18,7 @@ function initializePolls(api) {
|
||||
},
|
||||
unsubscribe() {
|
||||
this.messageBus.unsubscribe("/polls/*");
|
||||
this._super();
|
||||
this._super(...arguments);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user