(emitter, type)
| 7993 | } |
| 7994 | |
| 7995 | function hasHandler(emitter, type) { |
| 7996 | var arr = emitter._handlers && emitter._handlers[type]; |
| 7997 | return arr && arr.length > 0; |
| 7998 | } |
| 7999 | |
| 8000 | // Add on and off methods to a constructor's prototype, to make |
| 8001 | // registering events on such objects more convenient. |
no outgoing calls
no test coverage detected