From a853e6f3d2785b650afbde4912d8313a91f85db3 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 8 Dec 2023 10:59:40 +0000 Subject: [PATCH] Remove { passive: true } from removeEventListener This option doesn't exist when removing an event. Change-Id: I2449fec2b2368f829d93eea9a13c13aea1ab75f8 --- modules/dt.ui.ReplyWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dt.ui.ReplyWidget.js b/modules/dt.ui.ReplyWidget.js index 44d94d765..1761498c7 100644 --- a/modules/dt.ui.ReplyWidget.js +++ b/modules/dt.ui.ReplyWidget.js @@ -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;