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 method (like EventListener.off) #1102

Merged

Conversation

ricardo-devis-agullo
Copy link
Collaborator

Closes #296

Adding an off method resembling EventEmitter.off

Behaviour is the same as in there (fails if you don't pass a function, does nothing if the eventName is not registered). Added some tests for those scenarios.

Copy link
Member

@matteofigus matteofigus left a comment

Choose a reason for hiding this comment

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

LGTM

@matteofigus matteofigus merged commit e44ac5f into opencomponents:master Sep 13, 2019
@ricardo-devis-agullo ricardo-devis-agullo deleted the add-off-method branch September 16, 2019 07:36
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.

OC events handler should support .off()
2 participants