EventEmitter2
EventEmitter2 copied to clipboard
Fix bug in removeAllListeners()
I was trying to use eventNames() with removeAllListeners() and noticed that it didn't actually remove the event name. Fortunately, removeListener()/off() works as expected and I was able to use that instead, but I figured I should fix the bug, now that I have found it.