Skip to content

Commit 857265c

Browse files
committed
lint in geo location utils
1 parent 0d12595 commit 857265c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib/geo_location_utils.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@
1010
'use strict';
1111

1212
var countryRegex = require('country-regex');
13-
var locationUtils = module.exports = {};
13+
var Lib = require('./');
1414

15-
var Plotly = require('../plotly');
1615

1716
// make list of all country iso3 ids from at runtime
1817
var countryIds = Object.keys(countryRegex);
1918

2019
var locationmodeToIdFinder = {
21-
'ISO-3': Plotly.Lib.identity,
22-
'USA-states': Plotly.Lib.identity,
20+
'ISO-3': Lib.identity,
21+
'USA-states': Lib.identity,
2322
'country names': countryNameToISO3
2423
};
2524

26-
locationUtils.locationToFeature = function(locationmode, location, features) {
25+
exports.locationToFeature = function(locationmode, location, features) {
2726
var locationId = getLocationId(locationmode, location);
2827
var feature;
2928

0 commit comments

Comments
 (0)