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

Multiple binds for same event #37

Open
hfossli opened this issue Jul 13, 2015 · 0 comments
Open

Multiple binds for same event #37

hfossli opened this issue Jul 13, 2015 · 0 comments

Comments

@hfossli
Copy link
Contributor

hfossli commented Jul 13, 2015

In a OOP setup where multiple objects are tapping in to the same event they should be able to unbind without side effects.

Suggestion
I think on(...) should return a unique id (int) so that it is possible to remove the binding with off(identifier). We should also introduce a convenience method offAllForEvent(event) or something like that for those cases where you actually want to remove all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants