Closed aphleps closed 3 months ago
There are unit tests that check if hasListener()
is working properly and, as far as I can tell, everything is working as it should. If you can provide a code example that reproduces this problem, that would be helpful. It would also help to know if device
references an Input
or an InputChannel
object.
Description Adding new listeners works as expected
device.addListener("noteon", noteListener)
Removing listeners also works
device.removeListener("noteon");
However, the following functions do not seem to work for me
device.hasListener("noteon", noteListener)
always returnsfalse
device.getListenerCount("noteon")
always returns0
Environment: React 18.2.0 Vite 5.0.8 webmidi 3.1.9