(id: string, value: any)
| 10 | return this.events.has(id) |
| 11 | } |
| 12 | public emit(id: string, value: any) { |
| 13 | if (this.events.has(id)) { |
| 14 | this.events.get(id)?.forEach((event: any) => { |
| 15 | event(value) |
| 16 | }); |
| 17 | } |
| 18 | } |
| 19 | public off(id: string, event: Function) { |
| 20 | let ea = this.events.get(id) |
| 21 | if (ea!=null) { |
no test coverage detected