@urso/core 0.6.1 → 0.6.2

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.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -1,5 +1,7 @@
1
1
  class ModulesAssetsBaseModel {
2
2
  constructor(params) {
3
+ this.simpleClass = true;
4
+
3
5
  this.setupParams(params);
4
6
  this._templatePath = false;
5
7
  }
@@ -128,10 +128,11 @@ class ModulesInstancesController {
128
128
  params, noModes, modeName
129
129
  );
130
130
 
131
- self._addEntityToClass(instance, this);
132
-
133
- if (instance)
131
+ //no simpleClasses like ModulesAssetsBaseModel && ModulesObjectsBaseModel
132
+ if (instance && !instance.simpleClass) {
133
+ self._addEntityToClass(instance, this);
134
134
  self._setComonEntityFunctions(instance, this);
135
+ }
135
136
 
136
137
  return instance;
137
138
  };
@@ -1,5 +1,7 @@
1
1
  class ModulesObjectsBaseModel {
2
2
  constructor(params) {
3
+ this.simpleClass = true;
4
+
3
5
  this.setupParams(params);
4
6
 
5
7
  this.parent = false;