From: Tom Hughes Date: Sat, 30 Nov 2013 14:18:08 +0000 (+0000) Subject: Test for the map argument correctly X-Git-Tag: live~4593 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ec8a601309c9a501804d55b112fb72be2493446f Test for the map argument correctly --- diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index c41f040f3..d350b2896 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -115,7 +115,7 @@ OSM = { hash = querystring.parse(hash); - if (!(map in hash)) { + if (hash.map === undefined) { return false; }