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

docs: add the information on how to remove the onAny() & onError() event handlers #416

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

wolfy1339
Copy link
Member

@wolfy1339 wolfy1339 commented Jan 29, 2021

@wolfy1339 wolfy1339 added Type: Bug Something isn't working as documented, or is being fixed documentation labels Jan 29, 2021
@wolfy1339 wolfy1339 linked an issue Jan 29, 2021 that may be closed by this pull request
@wolfy1339 wolfy1339 requested a review from gr2m January 29, 2021 23:48
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'm not too happy with the API, but don't have a better idea either. Maybe we should add methods like .removeAnyListener(handler) and .removeErrorListener(handler)?

We should add tests for using .removeListener with * and error, I'll make a follow up issue

@wolfy1339 wolfy1339 merged commit b0c34e0 into master Feb 2, 2021
@wolfy1339 wolfy1339 deleted the add-docs-remove-onAny-onError branch February 2, 2021 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented, or is being fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add docs for removing onAny listener
4 participants