fix: remove children when destorying Container
This commit is contained in:
parent
459b81f76b
commit
5f8b3504db
|
@ -32,6 +32,7 @@ export class Container extends Renderable {
|
|||
|
||||
destroy() {
|
||||
this.children.forEach((child) => {
|
||||
this.removeChild(child);
|
||||
child.destroy();
|
||||
});
|
||||
super.destroy();
|
||||
|
|
Loading…
Reference in New Issue
Block a user