From 41b1bd4a7025f098f999d119a3f136273c7a2084 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 18 Feb 2014 17:20:52 -0800 Subject: [PATCH 1/1] Fix updateLinks({lat: 0, lon: 0}, ...) Fixes openstreetmap/iD#2130 --- app/assets/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- 2.39.5