(emitter, type)
| 8262 | } |
| 8263 | |
| 8264 | function hasHandler(emitter, type) { |
| 8265 | return getHandlers(emitter, type).length > 0 |
| 8266 | } |
| 8267 | |
| 8268 | // Add on and off methods to a constructor's prototype, to make |
| 8269 | // registering events on such objects more convenient. |
no test coverage detected