]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/osm.js.erb
Test for the map argument correctly
[rails.git] / app / assets / javascripts / osm.js.erb
index c41f040f33f7122339155577cab44495d0070705..d350b28969ccc020e3e403fd259da648c1bdebcf 100644 (file)
@@ -115,7 +115,7 @@ OSM = {
 
     hash = querystring.parse(hash);
 
-    if (!(map in hash)) {
+    if (hash.map === undefined) {
       return false;
     }