(emitter, type)
| 587 | } |
| 588 | |
| 589 | function hasHandler(emitter, type) { |
| 590 | return getHandlers(emitter, type).length > 0 |
| 591 | } |
| 592 | |
| 593 | // Add on and off methods to a constructor's prototype, to make |
| 594 | // registering events on such objects more convenient. |
no test coverage detected