From: Anton Khorev Date: Sun, 11 Aug 2024 04:04:37 +0000 (+0300) Subject: Make getGeocode a private function X-Git-Tag: live~601^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/89a35fe11f9d33c0a75f6b070de512480bc90029 Make getGeocode a private function --- 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;