MCPcopy Create free account
hub / github.com/pascalorg/editor / cleanup

Function cleanup

packages/editor/src/components/tools/select/box-select-state.ts:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 const onPointerCancel = (releaseEvent: PointerEvent) => clear(releaseEvent)
50 const onBlur = () => clear()
51 const cleanup = () => {
52 window.removeEventListener('pointerup', onPointerUp)
53 window.removeEventListener('pointercancel', onPointerCancel)
54 window.removeEventListener('blur', onBlur)
55 }
56
57 suppressionCleanups.set(pointerId, cleanup)
58 window.addEventListener('pointerup', onPointerUp)

Callers 2

clearFunction · 0.70
clearBoxSelectHandledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected