DEV: s/this._super()/this._super(...arguments) (#6908)

This commit is contained in:
Joffrey JAFFEUX
2019-01-19 10:05:51 +01:00
committed by GitHub
parent 61fff098ed
commit 502b1316d0
111 changed files with 174 additions and 151 deletions

View File

@ -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");
}
});

View File

@ -14,7 +14,7 @@ export default Ember.Controller.extend({
closedPollResult: "on_close",
init() {
this._super();
this._super(...arguments);
this._setupPoll();
},

View File

@ -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);
}
});