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

Listener not found warning #34

Open
Darksymphony75 opened this issue Apr 29, 2022 · 1 comment
Open

Listener not found warning #34

Darksymphony75 opened this issue Apr 29, 2022 · 1 comment

Comments

@Darksymphony75
Copy link

Using Leaflet.Sleep with the latest leaflet.js (1.8.0). After I move the mouse over the map, all browsers throws a warning Listener not found in Events.js:180:10.

The Events.js is not physically present in my file structure, seems it is generated by leaflet itself and the console shows it's path as src/core/Events.js.

There might be some conflict between Leaflet.Sleep and the newest leaflet, because with older leaflet.js there is no warning.

Also when I remove Leaflet.Sleep from my webpage and use only leaflet.js, the warning is gone, so it is definitely caused by Leaflet.Sleep.

@Darksymphony75
Copy link
Author

Leaflet.Sleep has many usages of off() after once(), which will always throw listener not found because once has already removed the listener. Can you please take a look?

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