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

Namespaced event listeners. #1

Closed
mbostock opened this issue Sep 30, 2010 · 2 comments
Closed

Namespaced event listeners. #1

mbostock opened this issue Sep 30, 2010 · 2 comments

Comments

@mbostock
Copy link
Member

The on method should allow a namespace, similar to jQuery's bind feature. This allows multiple event listeners to be registered for the same event type under different namespaces, such as "click.foo" and "click.bar".

A new off action should similarly allow de-registration of event listeners.

@mbostock
Copy link
Member Author

We don't need off, actually, since you can say on("click.foo", null).

@mbostock
Copy link
Member Author

Done in 0.30.8.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant