wgge 2.0.16 → 2.0.18

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.
@@ -0,0 +1 @@
1
+ npm publish
@@ -117,12 +117,13 @@ export default class ObjectModel extends ModelBase {
117
117
  */
118
118
  dispose() {
119
119
  this.properties.forEach(
120
- (prop) => {
120
+ (name, prop) => {
121
121
  if (typeof prop.dispose === 'function') prop.dispose();
122
122
  }
123
123
  );
124
- this.properties.reset();
125
- this.eventManager.reset();
124
+ // this should not be necessary
125
+ // this.properties.reset();
126
+ // this.eventManager.reset();
126
127
  }
127
128
 
128
129
  }
@@ -239,4 +239,13 @@ export default class ModelNodeCollection extends ObjectModel {
239
239
  return ArrayHelper.unique(result);
240
240
  }
241
241
 
242
+ /**
243
+ * This will empty the collection and remove registered handlers.
244
+ * Child nodes themselves will not be disposed!
245
+ */
246
+ dispose() {
247
+ this.reset();
248
+ super.dispose();
249
+ }
250
+
242
251
  }
@@ -1,6 +1,7 @@
1
1
  import ModelBase from "../ModelBase";
2
2
 
3
3
  export default class DirtyValue extends ModelBase {
4
+
4
5
  /** @type object|string|null */
5
6
  value = null;
6
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgge",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "description": "Web GL Game Engine",
5
5
  "main": "index.js",
6
6
  "devDependencies": {