From eca881d11fd97bde0c605cf3c03374de9e11e162 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 11 Sep 2017 08:26:39 +0200 Subject: [PATCH] Simplify setTimeout * Use setTimeout instead of window.setTimeout. * Directly call function and avoid anonymous function. Change-Id: Ic396ef744d58fb722761a66f38390d2bb4848c2d --- resources/ext.CodeMirror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/ext.CodeMirror.js b/resources/ext.CodeMirror.js index 072df3cb..d170284e 100644 --- a/resources/ext.CodeMirror.js +++ b/resources/ext.CodeMirror.js @@ -500,7 +500,7 @@ if ( !useCodeMirror ) { // Wait for DOM before loading our popup $( function () { - window.setTimeout( function () { handlePopup(); }, 500 ); + setTimeout( handlePopup, 500 ); } ); } }