MCPcopy Index your code
hub / github.com/material-shell/material-shell / leaveCallback

Method leaveCallback

src/manager/tooltipManager.ts:22–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

clearTimeoutIdMethod · 0.80
removeMethod · 0.65
disconnectMethod · 0.65

Tested by

no test coverage detected