From 933ffaee6e52b14e95f264696fd3f7b928e9a2b8 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 26 Apr 2026 15:20:45 +0200 Subject: [PATCH] fix inconsistent method capitalisation Signed-off-by: Frank Elsinga --- app/assets/javascripts/index/directions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 76778fbf5..ae2febd70 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -185,7 +185,7 @@ OSM.Directions = function (map) { } }); - function sendstartinglocation({ lat, lng }) { + function sendStartingLocation({ lat, lng }) { map.fire("startinglocation", { lat, lng }); } @@ -235,7 +235,7 @@ OSM.Directions = function (map) { endpoints[type === "from" ? 0 : 1].setValue(`${lat}, ${lng}`); }); - map.on("locationfound", sendstartinglocation); + map.on("locationfound", sendStartingLocation); endpoints[0].enableListeners(); endpoints[1].enableListeners(); @@ -274,7 +274,7 @@ OSM.Directions = function (map) { $("#sidebar .sidebar-close-controls button").off("click", closeButtonListener); $("#map").off("dragend dragover drop"); - map.off("locationfound", sendstartinglocation); + map.off("locationfound", sendStartingLocation); endpoints[0].disableListeners(); endpoints[1].disableListeners(); -- 2.47.3