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.
package/bin/publish.cmd
ADDED
|
@@ -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
|
|
125
|
-
this.
|
|
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
|
}
|