Remove console error caused by setTimeout called with undefined
This commit is contained in:
@@ -496,6 +496,7 @@ define([
|
|||||||
UI.removeLoadingScreen = function (cb) {
|
UI.removeLoadingScreen = function (cb) {
|
||||||
// Release the test blocker, hopefully every test has been registered.
|
// Release the test blocker, hopefully every test has been registered.
|
||||||
// This test is created in sframe-boot2.js
|
// This test is created in sframe-boot2.js
|
||||||
|
cb = cb || function () {};
|
||||||
if (Test.__ASYNC_BLOCKER__) { Test.__ASYNC_BLOCKER__.pass(); }
|
if (Test.__ASYNC_BLOCKER__) { Test.__ASYNC_BLOCKER__.pass(); }
|
||||||
|
|
||||||
$('#' + LOADING).addClass("cp-loading-hidden");
|
$('#' + LOADING).addClass("cp-loading-hidden");
|
||||||
@@ -508,9 +509,9 @@ define([
|
|||||||
'opacity': 0,
|
'opacity': 0,
|
||||||
'pointer-events': 'none',
|
'pointer-events': 'none',
|
||||||
});
|
});
|
||||||
setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
$tip.remove();
|
$tip.remove();
|
||||||
}, 3750);
|
}, 3750);
|
||||||
// jquery.fadeout can get stuck
|
// jquery.fadeout can get stuck
|
||||||
};
|
};
|
||||||
UI.errorLoadingScreen = function (error, transparent) {
|
UI.errorLoadingScreen = function (error, transparent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user