mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-18 01:00:45 +00:00
Remove { passive: true } from removeEventListener
This option doesn't exist when removing an event. Change-Id: I74cc8c41ad13ae7d2b4932c41d8dc51b764e1b6b
This commit is contained in:
parent
fda355fe2e
commit
dd4e766d4b
|
@ -132,7 +132,7 @@
|
|||
|
||||
function hideToolbarPlaceholder() {
|
||||
if ( $toolbarPlaceholder ) {
|
||||
window.removeEventListener( 'scroll', onWindowScrollListener, { passive: true } );
|
||||
window.removeEventListener( 'scroll', onWindowScrollListener );
|
||||
$toolbarPlaceholder.detach();
|
||||
$toolbarPlaceholder.removeClass( 've-init-mw-desktopArticleTarget-toolbarPlaceholder-open' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue