(eventType: string, detail: T)
| 13 | export const pageRemoveEventListener = performanceClone.removeEventListener.bind(performanceClone); |
| 14 | const detailClone = typeof cloneInto === "function" ? cloneInto : null; |
| 15 | export const pageDispatchCustomEvent = <T = any>(eventType: string, detail: T) => { |
| 16 | if (detailClone && detail) detail = <T>detailClone(detail, performanceClone); |
| 17 | const ev = new CustomEventClone(eventType, { |
| 18 | detail, |
| 19 | cancelable: true, |
| 20 | }); |
| 21 | return pageDispatchEvent(ev); |
| 22 | }; |
| 23 | |
| 24 | // flag协商 |
| 25 | export function negotiateEventFlag( |
no outgoing calls
no test coverage detected