Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Conversation

@jtc9921
Copy link

@jtc9921 jtc9921 commented Feb 4, 2016

Make the code more DRY and more flexible using EventEmitter2

ChrisCinelli and others added 2 commits January 24, 2016 17:40
Add also a way to output a log of the `.trigger` actions

The code that was doing event management was copy and pasted in 3 places.
Plus it has a mechanism that prevent the unprocessed listeners to execute if a listener return false. This mechanisms is error prone since it depends on the order in which the event listeners (.on) are registered. It seemed that the mechanism was not used beside optimization.
Make the code more DRY and more flexible using EventEmitter2
@anonrig anonrig closed this Feb 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants