diff --git a/app/assets/javascripts/index/directions-endpoint.js b/app/assets/javascripts/index/directions-endpoint.js index 066542707..d111eca35 100644 --- a/app/assets/javascripts/index/directions-endpoint.js +++ b/app/assets/javascripts/index/directions-endpoint.js @@ -44,11 +44,11 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch setInputValueFromLatLng(latlng); changeCallback(); } else if (endpoint.value) { - endpoint.getGeocode(); + getGeocode(); } }; - endpoint.getGeocode = function () { + function getGeocode() { endpoint.awaitingGeocode = true; var viewbox = map.getBounds().toBBoxString(); // ,,, @@ -67,7 +67,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch changeCallback(); }); - }; + } function setLatLng(ll) { endpoint.latlng = ll;