Skip to content

Commit 329a1db

Browse files
committed
lint (mostly scoped vars)
1 parent e5ed519 commit 329a1db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/traces/scattergeo/plot.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ plotScatterGeo.calcGeoJSON = function(trace, topojson) {
3131
var cdi = [],
3232
hasLocationData = Array.isArray(trace.locations);
3333

34-
var len, features, getLonLat, lonlat, locations, calcItem;
34+
var len, features, getLonLat, locations;
3535

3636
if(hasLocationData) {
3737
locations = trace.locations;
@@ -53,11 +53,11 @@ plotScatterGeo.calcGeoJSON = function(trace, topojson) {
5353
}
5454

5555
for(var i = 0; i < len; i++) {
56-
lonlat = getLonLat(trace, i);
56+
var lonlat = getLonLat(trace, i);
5757

5858
if(!lonlat) continue; // filter the blank points here
5959

60-
calcItem = {
60+
var calcItem = {
6161
lon: lonlat[0],
6262
lat: lonlat[1],
6363
location: hasLocationData ? trace.locations[i] : null
@@ -104,7 +104,7 @@ function makeLineGeoJSON(trace) {
104104
var N = trace.lon.length,
105105
coordinates = new Array(N);
106106

107-
for (var i = 0; i < N; i++) {
107+
for(var i = 0; i < N; i++) {
108108
coordinates[i] = [trace.lon[i], trace.lat[i]];
109109
}
110110

0 commit comments

Comments
 (0)