From: John Firebaugh Date: Wed, 19 Feb 2014 01:20:52 +0000 (-0800) Subject: Fix updateLinks({lat: 0, lon: 0}, ...) X-Git-Tag: live~4996 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/41b1bd4a7025f098f999d119a3f136273c7a2084?ds=sidebyside;hp=60fd6e2f5b5e2c1d0986ce80f863e83f79293bf7 Fix updateLinks({lat: 0, lon: 0}, ...) Fixes openstreetmap/iD#2130 --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 7072b7c6b..5d18f1da2 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -78,7 +78,7 @@ function updateLinks(loc, zoom, layers, object) { args = { lat: loc.lat, - lon: loc.lon || loc.lng, + lon: 'lon' in loc ? loc.lon : loc.lng, zoom: zoom };