(emitter, type)
| 6878 | } |
| 6879 | |
| 6880 | function hasHandler(emitter, type) { |
| 6881 | var arr = emitter._handlers && emitter._handlers[type]; |
| 6882 | return arr && arr.length > 0; |
| 6883 | } |
| 6884 | |
| 6885 | // Add on and off methods to a constructor's prototype, to make |
| 6886 | // registering events on such objects more convenient. |
no outgoing calls
no test coverage detected