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 Event#getListeners #5

Merged
merged 5 commits into from
Jul 27, 2020
Merged

Add Event#getListeners #5

merged 5 commits into from
Jul 27, 2020

Conversation

jacksteamdev
Copy link
Contributor

@jacksteamdev jacksteamdev commented Jul 27, 2020

This PR adds a method to get a shallow copy of the internal listeners Set. Changes to this Set will not modify the internal set, but if fine-grained assertions are required, or if you've done something crazy like wrapping the Chrome API Event objects, this feature will provide some relief.

Also, there was a runtime type check during calls to Event#callListeners, which was not tested and was sometimes wrong. This has been removed.

@jacksteamdev jacksteamdev changed the title add-get-listeners Add Event#getListeners Jul 27, 2020
@jacksteamdev jacksteamdev merged commit 824ecd1 into master Jul 27, 2020
@jacksteamdev jacksteamdev deleted the add-get-listeners branch July 27, 2020 21:45
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.

None yet

1 participant