mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Make hash jshint-friendlier
This commit is contained in:
@@ -43,10 +43,12 @@ iD.Hash = function() {
|
||||
map.off("move", move);
|
||||
window.removeEventListener("hashchange", hashchange, false);
|
||||
}
|
||||
if (map = x) {
|
||||
map = x;
|
||||
if (x) {
|
||||
map.on("move", move);
|
||||
window.addEventListener("hashchange", hashchange, false);
|
||||
location.hash ? hashchange() : move();
|
||||
if (location.hash) hashchange();
|
||||
else move();
|
||||
}
|
||||
return hash;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user