From 16d4433e6a0fc16475caa2bad680d621c71409a3 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 9b6fd09f5a..463b03cb96 100644 --- a/app/assets/javascripts/index/directions-endpoint.js +++ b/app/assets/javascripts/index/directions-endpoint.js @@ -46,11 +46,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(); // ,,, @@ -69,7 +69,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch changeCallback(); }); - }; + } function setLatLng(ll) { endpoint.latlng = ll;