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

change: offload once eventName logic to removeListener fn #3

Closed
wants to merge 1 commit into from
Closed

change: offload once eventName logic to removeListener fn #3

wants to merge 1 commit into from

Conversation

gesslerpd
Copy link
Contributor

Wraps once listener in a function that will also remove it upon being called for the first time, this offloads the eventName logic to the removeListener function

@yoshuawuyts
Copy link
Member

Nice one. This patch should probably also remove all references to this._onces and the like; would you mind doing that? Thanks!

@gesslerpd gesslerpd mentioned this pull request Mar 23, 2017
@gesslerpd gesslerpd closed this Mar 23, 2017
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