Remove zoomend listener on history unload

This commit is contained in:
Anton Khorev 2025-01-05 15:02:25 +03:00
parent 95b919c5d1
commit 7a99295884

View file

@ -164,6 +164,7 @@ OSM.History = function (map) {
page.unload = function () {
map.removeLayer(group);
map.off("moveend", update);
map.off("zoomend", updateBounds);
};
return page;