Remove zoomend listener on history unload
This commit is contained in:
parent
95b919c5d1
commit
7a99295884
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ OSM.History = function (map) {
|
|||
page.unload = function () {
|
||||
map.removeLayer(group);
|
||||
map.off("moveend", update);
|
||||
map.off("zoomend", updateBounds);
|
||||
};
|
||||
|
||||
return page;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue