(type, handler)
| 8 | } |
| 9 | |
| 10 | off(type, handler) { |
| 11 | const handlers = this.handlersMap[type] || [] |
| 12 | const index = handlers.indexOf(handler) |
| 13 | if (index >= 0) handlers.splice(index, 1) |
| 14 | } |
| 15 | |
| 16 | emit(type, event) { |
| 17 | const handlers = this.handlersMap[type] || [] |
no outgoing calls
no test coverage detected