Properly declare some variables

This commit is contained in:
Gautier Pelloux-Prayer 2019-08-06 14:27:18 +02:00
parent 179f1eedf0
commit 6a68482c0b

View file

@ -34,7 +34,6 @@
deleteRouteButton, deleteRouteButton,
drawToolbar, drawToolbar,
urlHash, urlHash,
reverseRoute,
saveWarningShown = false; saveWarningShown = false;
// By default bootstrap-select use glyphicons // By default bootstrap-select use glyphicons
@ -73,7 +72,7 @@
] ]
}); });
reverseRouteButton = L.easyButton( var reverseRouteButton = L.easyButton(
'fa-random', 'fa-random',
function() { function() {
routing.reverse(); routing.reverse();
@ -81,7 +80,7 @@
i18next.t('map.reverse-route') i18next.t('map.reverse-route')
); );
deletePointButton = L.easyButton( var deletePointButton = L.easyButton(
'<span><i class="fa fa-caret-left"></i><i class="fa fa-map-marker" style="margin-left: 1px; color: gray;"></i></span>', '<span><i class="fa fa-caret-left"></i><i class="fa fa-map-marker" style="margin-left: 1px; color: gray;"></i></span>',
function() { function() {
routing.removeWaypoint(routing.getLast(), function(err, data) {}); routing.removeWaypoint(routing.getLast(), function(err, data) {});
@ -258,7 +257,7 @@
} }
nogos.addTo(map); nogos.addTo(map);
drawToolbar = L.easyBar([ L.easyBar([
drawButton, drawButton,
reverseRouteButton, reverseRouteButton,
nogos.getButton(), nogos.getButton(),