From: Anton Khorev Date: Sun, 5 Jan 2025 12:02:25 +0000 (+0300) Subject: Remove zoomend listener on history unload X-Git-Tag: live~33^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7a99295884aa2fb4d4e380b1751ebcba40f66cbb Remove zoomend listener on history unload --- diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index c6ba0c2ed..ae8f027ed 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -164,6 +164,7 @@ OSM.History = function (map) { page.unload = function () { map.removeLayer(group); map.off("moveend", update); + map.off("zoomend", updateBounds); }; return page;