Simplify setTimeout

* Use setTimeout instead of window.setTimeout.
* Directly call function and avoid anonymous function.

Change-Id: Ic396ef744d58fb722761a66f38390d2bb4848c2d
This commit is contained in:
Fomafix 2017-09-11 08:26:39 +02:00
parent 8fd002756a
commit eca881d11f

View file

@ -500,7 +500,7 @@
if ( !useCodeMirror ) {
// Wait for DOM before loading our popup
$( function () {
window.setTimeout( function () { handlePopup(); }, 500 );
setTimeout( handlePopup, 500 );
} );
}
}