From 6a68482c0b72d9f7fc7e8dd05ae7287353b215b1 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 6 Aug 2019 14:27:18 +0200 Subject: [PATCH] Properly declare some variables --- js/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/index.js b/js/index.js index 200c8e2..acca70e 100644 --- a/js/index.js +++ b/js/index.js @@ -34,7 +34,6 @@ deleteRouteButton, drawToolbar, urlHash, - reverseRoute, saveWarningShown = false; // By default bootstrap-select use glyphicons @@ -73,7 +72,7 @@ ] }); - reverseRouteButton = L.easyButton( + var reverseRouteButton = L.easyButton( 'fa-random', function() { routing.reverse(); @@ -81,7 +80,7 @@ i18next.t('map.reverse-route') ); - deletePointButton = L.easyButton( + var deletePointButton = L.easyButton( '', function() { routing.removeWaypoint(routing.getLast(), function(err, data) {}); @@ -258,7 +257,7 @@ } nogos.addTo(map); - drawToolbar = L.easyBar([ + L.easyBar([ drawButton, reverseRouteButton, nogos.getButton(),