@urso/core 0.2.5 → 0.2.6
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
|
@@ -29,13 +29,13 @@ class ComponentsStateDrivenController extends ComponentsBaseController {
|
|
|
29
29
|
* @param {String} actionKey
|
|
30
30
|
*/
|
|
31
31
|
callFinish(actionKey) {
|
|
32
|
-
if (!this._finishCallbacks
|
|
32
|
+
if (!this._finishCallbacks[actionKey]) {
|
|
33
33
|
Urso.logger.error('ComponentsStateDrivenController: no finish for actionKey', actionKey, this);
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
this._finishCallbacks
|
|
38
|
-
delete this._finishCallbacks
|
|
37
|
+
this._finishCallbacks[actionKey]();
|
|
38
|
+
delete this._finishCallbacks[actionKey];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
_processStates() {
|
|
@@ -74,10 +74,10 @@ class ComponentsStateDrivenController extends ComponentsBaseController {
|
|
|
74
74
|
* @param {Function} finish
|
|
75
75
|
*/
|
|
76
76
|
_saveFinish(actionKey, finish) {
|
|
77
|
-
if (this._finishCallbacks
|
|
77
|
+
if (this._finishCallbacks[actionKey])
|
|
78
78
|
Urso.logger.error('ComponentsStateDrivenController: actionKey alredy exists', actionKey, finish, this);
|
|
79
79
|
|
|
80
|
-
this._finishCallbacks
|
|
80
|
+
this._finishCallbacks[actionKey] = finish;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
_subscribeOnce() {
|