Closed jokeyrhyme closed 9 years ago
Cross-posted with Node.js: https://github.com/joyent/node/issues/9332
Here is some references. There is probably a few more that I've forgotten. https://github.com/iojs/io.js/pull/540 https://github.com/joyent/node/pull/3338 https://github.com/joyent/node/issues/5352
From #540
And off is weird. event listeners aren't light switches. "on" has a number of meanings, "off" is the opposite of only some of those meanings. "under" is also an antonym of "on"... but neither "under" nor "off" are antonyms of the meaning of "on" used by EE.
Sorry about the duplicate. I swear I did search first. /shrug Arguments against this make sense. :)
EventEmitter#on()
alias forEventEmitter#addListener()
Is this the sort of thing you'd welcome a PR for? Or is this not something you're interested having in core?