fix: remove from dom

This commit is contained in:
cha0s 2022-05-11 15:47:32 -05:00
parent 12cf8b2eea
commit d26d777b79

View File

@ -68,7 +68,8 @@ export default () => class DomNode extends decorate(Trait) {
}
destroy() {
this.removeFromDom();
super.parentNode?.removeChild(this.entity.node);
super.parentNode = null;
this.$$styleTicker.off('tick', this.tickStyle);
super.destroy();
}
@ -135,7 +136,6 @@ export default () => class DomNode extends decorate(Trait) {
}
removeFromDom() {
super.parentNode?.removeChild(this.entity.node);
super.parentNode = null;
}