MCPcopy
hub / github.com/CapSoftware/Cap / on

Function on

apps/desktop/scripts/desktop-display-transport-benchmark.js:385–389  ·  view source on GitHub ↗
(method, handler)

Source from the content-addressed store, hash-verified

383 });
384 },
385 on(method, handler) {
386 const handlers = eventHandlers.get(method) ?? new Set();
387 handlers.add(handler);
388 eventHandlers.set(method, handlers);
389 },
390 off(method, handler) {
391 const handlers = eventHandlers.get(method);
392 if (!handlers) return;

Callers 15

CropperFunction · 0.85
NativeCameraPreviewPageFunction · 0.85
LegacyCameraPreviewPageFunction · 0.85
context.tsFile · 0.85
InnerFunction · 0.85
DialogsFunction · 0.85
BackgroundConfigFunction · 0.85
ZoomSegmentConfigFunction · 0.85
CaptionOverlayFunction · 0.85
TextSegmentOverlayFunction · 0.85
CaptionsTabFunction · 0.85
PerformanceOverlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected