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

Add support for .once and .off #5

Open
TheRealest opened this issue Jun 15, 2015 · 0 comments
Open

Add support for .once and .off #5

TheRealest opened this issue Jun 15, 2015 · 0 comments

Comments

@TheRealest
Copy link
Owner

  • .once: like .on but after the callback has been triggered by an event one time it is deleted.
  • .off: takes an optional event name and callback -- if an event name and callback are supplied, remove the callback from listening to the given event; if only the event name is provided, remove all callbacks from that event; with no arguments removes all eventful callbacks for the given component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant