You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
from the doc for
zoom.on(typenames[, listener])
: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.The text was updated successfully, but these errors were encountered: