From 89a35fe11f9d33c0a75f6b070de512480bc90029 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 11 Aug 2024 07:04:37 +0300 Subject: [PATCH] Make getGeocode a private function --- app/assets/javascripts/index/directions-endpoint.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5