Skip to content

Getting sets of internal listeners

Compare
Choose a tag to compare
@jacksteamdev jacksteamdev released this 27 Jul 21:49
· 12 commits to master since this release

This version adds a method to Events 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.

v0.6.0...v0.7.0