summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9544ab1)
Can't rely on checking location.pathname -- inside unload,
it already contains the new path. Fortunately, checking is
unnecessary.
Fixes TypeError: Cannot call method 'split' of undefined.
page.unload = function() {
map.removeLayer(group);
page.unload = function() {
map.removeLayer(group);
-
- if (window.location.pathname === '/history') {
- map.off("moveend", update)
- }
+ map.off("moveend", update);
$("#history_tab").removeClass("current");
};
$("#history_tab").removeClass("current");
};