primus / eventemitter3

EventEmitter3 - Because there's also a number 2. And we're faster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support removeAllListener

mesutyigit opened this issue · comments

addEventListener('a',aCallback)
addEventListener('a',aCallback2)
addEventListener('v',aCallback2)
removeAllListener() // run each remove for addEventListener

I'm not sure I understand. There is already removeAllListeners() and removeListener(), what removeAllListener() should do?

You mean removeAllListener can remove events listeners of all the event types(in your example, a and v's aCallback, ?vCallback )?

Closing due to inactivity.