If emitter.off provides only the event, remove all listeners for that event.#124
If emitter.off provides only the event, remove all listeners for that event.#124developit merged 3 commits intodevelopit:masterfrom
Conversation
If emitter.off provides only the event, remove all listeners for that event.
|
Looks like this needs some formatting fixes and it should be good to go! |
|
@andreyrd Thanks, I am going to fix the format. |
|
Quick note, could this be adjusted to allow for partial/wildcard matching? So we can remove listeners written in a namespaced format.
Which could then be used to remove all listeners for a component on destroy, rather than listing each one, potentially missing some. I'm happy to add the code myself if needed in another PR. |
This is a good idea, you are welcome to submit your own ideas. |
|
what happened to this PR awaiting for this feature |
|
@developit ping & thanks |
|
This will be released as 3.0.0. |
This solves the #123 issue.