(eventName: string, detail: RuntimeJson)
| 33 | let pickLastSelectedInfo: RuntimePickerElementInfo | null = null; |
| 34 | |
| 35 | function emitPickerRuntimeEvent(eventName: string, detail: RuntimeJson): void { |
| 36 | try { |
| 37 | window.dispatchEvent(new CustomEvent(eventName, { detail })); |
| 38 | } catch (err) { |
| 39 | // no-op in unsupported contexts |
| 40 | swallow("runtime.picker.site1", err); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | function setLastHoveredInfo(info: RuntimePickerElementInfo | null): void { |
| 45 | pickLastHoveredInfo = info; |
no test coverage detected