From 010378fb76749e370033f03cddf7c83f3218dcca Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Tue, 14 Jun 2016 16:28:22 +0100 Subject: [PATCH] Make easy eslint fixes to maps.js --- public/assets/js/maps.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/assets/js/maps.js b/public/assets/js/maps.js index 4901c5da..08a5cf3c 100644 --- a/public/assets/js/maps.js +++ b/public/assets/js/maps.js @@ -1,6 +1,6 @@ //This code runs on page load and looks for
, then adds map var mapDivs = document.querySelectorAll('.map'); -for(var i = 0; i < mapDivs.length; i++) { +for (var i = 0; i < mapDivs.length; i++) { var mapDiv = mapDivs[i]; var latitude = mapDiv.dataset.latitude; var longitude = mapDiv.dataset.longitude; @@ -8,8 +8,8 @@ for(var i = 0; i < mapDivs.length; i++) { var map = L.mapbox.map(mapDiv, 'jonnybarnes.gnoihnim') .setView([latitude, longitude], 15) .addLayer(L.mapbox.tileLayer('jonnybarnes.gnoihnim', { - detectRetina: true, - })); - var marker = L.marker([latitude, longitude]).addTo(map); + detectRetina: true + })); + L.marker([latitude, longitude]).addTo(map); map.scrollWheelZoom.disable(); }