From 47203c37f184f37936eaf58c5ea64204eb66b7e8 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 12 Jan 2018 17:44:56 +0100 Subject: [PATCH] Remove console error caused by setTimeout called with undefined --- www/common/common-interface.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index f45d44380..14cb3e53a 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -496,6 +496,7 @@ define([ UI.removeLoadingScreen = function (cb) { // Release the test blocker, hopefully every test has been registered. // This test is created in sframe-boot2.js + cb = cb || function () {}; if (Test.__ASYNC_BLOCKER__) { Test.__ASYNC_BLOCKER__.pass(); } $('#' + LOADING).addClass("cp-loading-hidden"); @@ -508,9 +509,9 @@ define([ 'opacity': 0, 'pointer-events': 'none', }); - setTimeout(function () { - $tip.remove(); - }, 3750); + window.setTimeout(function () { + $tip.remove(); + }, 3750); // jquery.fadeout can get stuck }; UI.errorLoadingScreen = function (error, transparent) {