MCPcopy Create free account
hub / github.com/code100x/cms / cleanup

Function cleanup

src/components/VideoPlayer2.tsx:301–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300 // Cleanup function
301 const cleanup = () => {
302 resizeObserver.disconnect();
303 hammer.destroy();
304 if (zoomIndicator.timeoutId) clearTimeout(zoomIndicator.timeoutId);
305 container.removeChild(zoomIndicator);
306 resetZoom();
307 };
308
309 player.on('dispose', cleanup);
310 return cleanup;

Callers

nothing calls this directly

Calls 1

resetZoomFunction · 0.85

Tested by

no test coverage detected