mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
Simplify setTimeout
* Use setTimeout instead of window.setTimeout. * Directly call function and avoid anonymous function. Change-Id: Ic396ef744d58fb722761a66f38390d2bb4848c2d
This commit is contained in:
parent
8fd002756a
commit
eca881d11f
|
@ -500,7 +500,7 @@
|
|||
if ( !useCodeMirror ) {
|
||||
// Wait for DOM before loading our popup
|
||||
$( function () {
|
||||
window.setTimeout( function () { handlePopup(); }, 500 );
|
||||
setTimeout( handlePopup, 500 );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue