(event: string, args: any[])
| 581 | } |
| 582 | |
| 583 | const dispatch = (event: string, args: any[]) => { |
| 584 | this.dispatchEvent( |
| 585 | new CustomEvent( |
| 586 | event, |
| 587 | isPlainObject(args[0]) |
| 588 | ? extend({ detail: args }, args[0]) |
| 589 | : { detail: args }, |
| 590 | ), |
| 591 | ) |
| 592 | } |
| 593 | |
| 594 | // intercept emit |
| 595 | instance.emit = (event: string, ...args: any[]) => { |
nothing calls this directly
no test coverage detected