wgge 2.0.15 → 2.0.17

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.
@@ -116,13 +116,13 @@ export default class ObjectModel extends ModelBase {
116
116
  * Not calling this when object is meant to be destroyed might lead to memory leaks e.g. when using NullableNode
117
117
  */
118
118
  dispose() {
119
- this.eventManager.reset();
120
119
  this.properties.forEach(
121
120
  (prop) => {
122
121
  if (typeof prop.dispose === 'function') prop.dispose();
123
122
  }
124
123
  );
125
124
  this.properties.reset();
125
+ this.eventManager.reset();
126
126
  }
127
127
 
128
128
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgge",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "Web GL Game Engine",
5
5
  "main": "index.js",
6
6
  "devDependencies": {