()
| 444 | * Stop recording user actions by removing event listeners |
| 445 | */ |
| 446 | export function stopRecording() { |
| 447 | if (!isRecordingActive) return; |
| 448 | |
| 449 | console.log('InverseUI: Stopping action recording'); |
| 450 | isRecordingActive = false; |
| 451 | |
| 452 | // Remove all event listeners |
| 453 | eventListeners.forEach(({ element, event, listener, capture }) => { |
| 454 | element.removeEventListener(event, listener, capture); |
| 455 | }); |
| 456 | |
| 457 | // Clear the listeners array |
| 458 | eventListeners = []; |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Complete inline recording implementation (all features) - fallback when modules fail to load |
nothing calls this directly
no outgoing calls
no test coverage detected