mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 02:58:08 +08:00
DEV: s/this._super()/this._super(...arguments) (#6908)
This commit is contained in:
@ -48,7 +48,7 @@ export default Ember.Component.extend(AddArchetypeClass, Scrolling, {
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
this._super(...arguments);
|
||||
this.bindScrolling({ name: "topic-view" });
|
||||
|
||||
$(window).on("resize.discourse-on-scroll", () => this.scrolled());
|
||||
@ -117,7 +117,7 @@ export default Ember.Component.extend(AddArchetypeClass, Scrolling, {
|
||||
},
|
||||
|
||||
willDestroyElement() {
|
||||
this._super();
|
||||
this._super(...arguments);
|
||||
this.unbindScrolling("topic-view");
|
||||
$(window).unbind("resize.discourse-on-scroll");
|
||||
|
||||
|
Reference in New Issue
Block a user