Minor code improvement

pull/1/head
yflory 2021-01-08 16:51:34 +01:00
parent 1fdacd8657
commit b239a528bf
1 changed files with 1 additions and 8 deletions

View File

@ -2870,13 +2870,6 @@ define([
*/
var initialized = false;
var whenReady = function (cb) {
if (store.returned) { return void cb(); }
setTimeout(function() {
whenReady(cb);
}, 100);
};
Store.init = function (clientId, data, _callback) {
var callback = Util.once(_callback);
@ -2899,7 +2892,7 @@ define([
type: "offline"
});
}
return void whenReady(function () {
return void onReadyEvt.reg(function () {
callback({
state: 'ALREADY_INIT',
returned: store.returned