(emitter, type)
| 2006 | } |
| 2007 | |
| 2008 | function hasHandler(emitter, type) { |
| 2009 | return getHandlers(emitter, type).length > 0 |
| 2010 | } |
| 2011 | |
| 2012 | // Add on and off methods to a constructor's prototype, to make |
| 2013 | // registering events on such objects more convenient. |
no test coverage detected