Remove node on actor crashes
This commit is contained in:
parent
1dab59bef4
commit
ab353b525b
|
@ -32,8 +32,10 @@ export class Widget implements EventTarget {
|
|||
constructor (private nodeGenerator: NodeGenerator) {
|
||||
this.facet = Turn.activeFacet;
|
||||
|
||||
const cancelAtExit = this.facet.actor.atExit(() => this.node.remove());
|
||||
on stop {
|
||||
this.node.remove();
|
||||
cancelAtExit();
|
||||
}
|
||||
|
||||
const thisTemplate = template();
|
||||
|
|
Loading…
Reference in New Issue