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

zoom.on() not working if using a name #241

Open
lebesnec opened this issue Jul 28, 2021 · 0 comments
Open

zoom.on() not working if using a name #241

lebesnec opened this issue Jul 28, 2021 · 0 comments

Comments

@lebesnec
Copy link

from the doc for zoom.on(typenames[, listener]) :

The typenames is a string containing one or more typename separated by whitespace. Each typename is a type, optionally followed by a period (.) and a name, such as zoom.foo and zoom.bar; the name allows multiple listeners to be registered for the same type.

but I can't get zoom.on('zoom.foo', () => { ... }) to work...
zoom.on('zoom', () => { ... }) seems to work but is problematic because it remove listeners previously registered with the same typename.

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