(emitter, type)
| 64 | } |
| 65 | |
| 66 | export function hasHandler(emitter, type) { |
| 67 | return getHandlers(emitter, type).length > 0 |
| 68 | } |
| 69 | |
| 70 | // Add on and off methods to a constructor's prototype, to make |
| 71 | // registering events on such objects more convenient. |
no test coverage detected