mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-18 09:10:59 +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() {
|
function hideToolbarPlaceholder() {
|
||||||
if ( $toolbarPlaceholder ) {
|
if ( $toolbarPlaceholder ) {
|
||||||
window.removeEventListener( 'scroll', onWindowScrollListener, { passive: true } );
|
window.removeEventListener( 'scroll', onWindowScrollListener );
|
||||||
$toolbarPlaceholder.detach();
|
$toolbarPlaceholder.detach();
|
||||||
$toolbarPlaceholder.removeClass( 've-init-mw-desktopArticleTarget-toolbarPlaceholder-open' );
|
$toolbarPlaceholder.removeClass( 've-init-mw-desktopArticleTarget-toolbarPlaceholder-open' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue