Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add off shortcut for removeListener #42

Closed
wants to merge 1 commit into from

Conversation

grifotv
Copy link

@grifotv grifotv commented Oct 19, 2017

So it's consistent with on shortcut

So it's consistent with `on` shortcut
@goto-bus-stop
Copy link
Member

thanks, but events is supposed to be an implementation of the Node events API, which doesn't have an off function. adding one would be a breaking change and would make it difficult to use events as a drop in replacement for the Node core module in the browser.

@goto-bus-stop
Copy link
Member

nodejs/node#17156 missed this!

@goto-bus-stop
Copy link
Member

goto-bus-stop commented Apr 25, 2018

@grifotv Node 10 was released yesterday with the EventEmitter.prototype.off method. Would you mind rebasing this PR? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants