@urso/core 0.7.35 → 0.7.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/js/lib/cache.js
CHANGED
package/src/js/lib/loader.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class LibLoader {
|
|
2
2
|
constructor() {
|
|
3
|
+
this.RELOAD_DELAY = 250;
|
|
3
4
|
this._isRunning = false;
|
|
4
5
|
this._iterationNumber = 0;
|
|
5
6
|
this._assetsQuery = [];
|
|
@@ -146,9 +147,11 @@ class LibLoader {
|
|
|
146
147
|
|
|
147
148
|
|
|
148
149
|
_onError(error) {
|
|
150
|
+
Urso.logger.warn('LibLoader file load error: ', error);
|
|
149
151
|
this._loader.reset();
|
|
150
152
|
this._isRunning = false;
|
|
151
|
-
|
|
153
|
+
|
|
154
|
+
this._resizeTimeoutId = Urso.setTimeout(() => this.start(this._completeCallback), this.RELOAD_DELAY);
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
};
|
|
@@ -4,6 +4,7 @@ class ModulesStatesManagerController {
|
|
|
4
4
|
|
|
5
5
|
this._configStates;
|
|
6
6
|
this._currentState;
|
|
7
|
+
this._forceNextStateKey = null;
|
|
7
8
|
this._started = false;
|
|
8
9
|
this._paused = false;
|
|
9
10
|
this._pauseNeedResume = false;
|
|
@@ -42,6 +43,14 @@ class ModulesStatesManagerController {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
setForceNextState(stateKey) {
|
|
47
|
+
if (!this._configStates[stateKey]) {
|
|
48
|
+
Urso.logger.error('ModulesStatesManagerController: setForceNextState name error', stateKey);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
this._forceNextStateKey = stateKey
|
|
52
|
+
}
|
|
53
|
+
|
|
45
54
|
_iteratorConstructor() {
|
|
46
55
|
let nextIndex = 0;
|
|
47
56
|
|
|
@@ -57,6 +66,12 @@ class ModulesStatesManagerController {
|
|
|
57
66
|
|
|
58
67
|
return {
|
|
59
68
|
next: (() => {
|
|
69
|
+
if (this._forceNextStateKey) {
|
|
70
|
+
const forceNextStateKey = this._forceNextStateKey;
|
|
71
|
+
this._forceNextStateKey = null;
|
|
72
|
+
return forceNextStateKey;
|
|
73
|
+
}
|
|
74
|
+
|
|
60
75
|
let statesArray = Object.keys(this._configStates);
|
|
61
76
|
|
|
62
77
|
//nextState
|