(emitter, type)
| 8230 | } |
| 8231 | |
| 8232 | function hasHandler(emitter, type) { |
| 8233 | return getHandlers(emitter, type).length > 0 |
| 8234 | } |
| 8235 | |
| 8236 | // Add on and off methods to a constructor's prototype, to make |
| 8237 | // registering events on such objects more convenient. |
no test coverage detected