addListener function ✓ 100.0%
Last updated: 2026-03-05T11:49:57.418Z
Metrics
LOC: 9
Complexity: 1
Params: 5
Coverage: 100.0% (2/2 lines, 0x executed)
Signature
addListener(
target: EventTarget,
event: string,
handler: EventListener,
options?: AddEventListenerOptions,
): : void
Source Code
function addListener(
target: EventTarget,
event: string,
handler: EventListener,
options?: AddEventListenerOptions,
): void {
target.addEventListener(event, handler, options);
listeners.push({ target, event, handler });
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| event | dynamic_call |
Impact (Incoming)
| Source | Type |
|---|---|
| startRecording | calls |
| tryRestoreRecordingSession | calls |