()
| 20 | let left = false; |
| 21 | let timeoutId: number; |
| 22 | const leaveCallback = () => { |
| 23 | left = true; |
| 24 | if (tooltip) { |
| 25 | tooltip.remove(); |
| 26 | tooltip = null; |
| 27 | } |
| 28 | // Cancel countdown, if any |
| 29 | if (timeoutId) { |
| 30 | Async.clearTimeoutId(timeoutId); |
| 31 | timeoutId = 0; |
| 32 | } |
| 33 | if (!actorDestroyed) { |
| 34 | actor.disconnect(leaveId); |
| 35 | actor.disconnect(destroyId); |
| 36 | } |
| 37 | global.stage.disconnect(deactivateId); |
| 38 | }; |
| 39 | const leaveId = actor.connect('leave-event', leaveCallback); |
| 40 | const destroyId = actor.connect('destroy', () => { |
| 41 | actorDestroyed = true; |
nothing calls this directly
no test coverage detected