While #46 kind of explained the current API to static analysers, I think we should split the two ways of calling getListeners() into two separate methods. With this PR, I'd like to add a method getAllListeners() and deprecate calling getListeners() without an event name. This should make the API a lot cleaner in a future 2.0 release.
While #46 kind of explained the current API to static analysers, I think we should split the two ways of calling
getListeners()
into two separate methods. With this PR, I'd like to add a methodgetAllListeners()
and deprecate callinggetListeners()
without an event name. This should make the API a lot cleaner in a future 2.0 release.