mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Remove { passive: true } from removeEventListener
This option doesn't exist when removing an event. Change-Id: I2449fec2b2368f829d93eea9a13c13aea1ab75f8
This commit is contained in:
parent
d69dc24161
commit
a853e6f3d2
|
@ -709,7 +709,7 @@ ReplyWidget.prototype.teardown = function ( mode ) {
|
|||
this.modeTabSelect.blur();
|
||||
}
|
||||
this.unbindBeforeUnloadHandler();
|
||||
this.$window[ 0 ].removeEventListener( 'scroll', this.onWindowScrollThrottled, { passive: true } );
|
||||
this.$window[ 0 ].removeEventListener( 'scroll', this.onWindowScrollThrottled );
|
||||
mw.hook( 'wikipage.watchlistChange' ).remove( this.onWatchToggleHandler );
|
||||
|
||||
this.isTornDown = true;
|
||||
|
|
Loading…
Reference in a new issue