Remove { passive: true } from removeEventListener

This option doesn't exist when removing an event.

Change-Id: I2449fec2b2368f829d93eea9a13c13aea1ab75f8
This commit is contained in:
Ed Sanders 2023-12-08 10:59:40 +00:00
parent d69dc24161
commit a853e6f3d2

View file

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