Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Releases: Olical/EventEmitter

Clean all the things

27 Jul 11:47
Compare
Choose a tag to compare

This release is mainly just tidying up things based on linting and opinions. So I have removed silly things such as that almost blank .jshintrc file which stopped your own ~/.jshintrc working when you were editing any EventEmitter code.

@desandro also submitted a pull request about a bug he found when nesting listeners. I have since improved the tests hugely but still can't reproduce the issue he found. I have merged in that change anyway because it should make the code more robust.

So, no new features, just hardening and cleaning. Enjoy!

Once and scoping

15 Jul 20:29
Compare
Choose a tag to compare

This release has added support for the addOnceListener method and it's alias, once. You can also now set the return value that is checked for when auto removing listeners with setOnceReturnValue.

There are also a few scoping improvements so listeners will now be executed in the context of the EventEmitter instance, not null.