From 7a99295884aa2fb4d4e380b1751ebcba40f66cbb Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 5 Jan 2025 15:02:25 +0300 Subject: [PATCH] Remove zoomend listener on history unload --- app/assets/javascripts/index/history.js | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5