fix: remove children when destorying Container

This commit is contained in:
cha0s 2019-04-14 16:10:08 -05:00
parent 459b81f76b
commit 5f8b3504db

View File

@ -32,6 +32,7 @@ export class Container extends Renderable {
destroy() {
this.children.forEach((child) => {
this.removeChild(child);
child.destroy();
});
super.destroy();