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

F2.Events::on, ::many, ::once should return a cancellable event handle #190

Open
ilinkuo opened this issue Nov 19, 2014 · 0 comments
Open

Comments

@ilinkuo
Copy link

ilinkuo commented Nov 19, 2014

(Enhancement request) Currently, on(), many(), once() return nothing and it's quite a pain to call F2.Events.off.

These methods should return an event handle with an off() method to make it easy to cancel a single event. F2.Events::off() can still be used to remove a large class of events.

I'll try to put up a jsfiddle next week.

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