@urso/core 0.2.0-dev → 0.2.1-dev

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.2.00-dev",
3
+ "version": "0.2.01-dev",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -16,14 +16,6 @@ class ComponentsStateDrivenController extends ComponentsBaseController {
16
16
  }*/
17
17
  };
18
18
 
19
- //TODO subscribe to N actions
20
- constructor(options) {
21
- super(options);
22
-
23
- this._processStates();
24
- this._processActions();
25
- }
26
-
27
19
  _processStates() {
28
20
  for (const stateKey in this.configStates) {
29
21
  Urso.statesManager.setStateGuard(stateKey, this.configStates[stateKey].guard.bind(this));
@@ -51,6 +43,11 @@ class ComponentsStateDrivenController extends ComponentsBaseController {
51
43
  }
52
44
  }
53
45
 
46
+ _subscribeOnce() {
47
+ this._processStates();
48
+ this._processActions();
49
+ }
50
+
54
51
  //todo
55
52
  destroy() {
56
53
  Urso.logger.error('ComponentsStateDrivenController will remove States and Actions by configs');