]> git.openstreetmap.org Git - rails.git/commitdiff
Test for the map argument correctly
authorTom Hughes <tom@compton.nu>
Sat, 30 Nov 2013 14:18:08 +0000 (14:18 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 30 Nov 2013 14:18:08 +0000 (14:18 +0000)
app/assets/javascripts/osm.js.erb

index c41f040f33f7122339155577cab44495d0070705..d350b28969ccc020e3e403fd259da648c1bdebcf 100644 (file)
@@ -115,7 +115,7 @@ OSM = {
 
     hash = querystring.parse(hash);
 
 
     hash = querystring.parse(hash);
 
-    if (!(map in hash)) {
+    if (hash.map === undefined) {
       return false;
     }
 
       return false;
     }