Simplify. Why didn't I do it like this before?
This commit is contained in:
parent
3823d3172c
commit
08197626a6
|
@ -312,12 +312,8 @@ export class Turn {
|
||||||
}
|
}
|
||||||
|
|
||||||
stop(facet: Facet = this.activeFacet, continuation?: LocalAction) {
|
stop(facet: Facet = this.activeFacet, continuation?: LocalAction) {
|
||||||
if (facet.parent === null) {
|
if (continuation) facet.onStop(continuation);
|
||||||
this.stopActor();
|
facet._terminate(true);
|
||||||
} else {
|
|
||||||
if (continuation) facet.onStop(continuation);
|
|
||||||
facet._terminate(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Alias for syndicatec code generator to use
|
// Alias for syndicatec code generator to use
|
||||||
|
|
Loading…
Reference in New Issue