fix: release children refs on spawner destroy

This commit is contained in:
cha0s 2019-05-03 02:24:02 -05:00
parent c1a90b941b
commit 643f2bbf62

View File

@ -28,6 +28,10 @@ export class Spawner extends decorate(Trait) {
};
}
destroy() {
this.children = [];
}
initialize() {
this.children = [];
this.spawnJSONs = this.params.get('spawns').toJS();