Fix import statement for sexagesimal

This commit is contained in:
Bryan Housel
2016-06-24 17:03:52 -04:00
parent 448fa7aa0c
commit 38a08560c9
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.iD = global.iD || {})));
}(this, function (exports) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('sexagesimal')) :
typeof define === 'function' && define.amd ? define(['exports', 'sexagesimal'], factory) :
(factory((global.iD = global.iD || {}),global.sexagesimal));
}(this, function (exports,sexagesimal) { 'use strict';
function AddEntity(way) {
return function(graph) {
+2 -2
View File
@@ -3216,7 +3216,7 @@
}
});
var sexagesimal = (index && typeof index === 'object' && 'default' in index ? index['default'] : index);
var pair = index.pair;
function FeatureList(context) {
var geocodeResults;
@@ -3294,7 +3294,7 @@
});
}
var locationMatch = sexagesimal.pair(q.toUpperCase()) || q.match(/^(-?\d+\.?\d*)\s+(-?\d+\.?\d*)$/);
var locationMatch = pair(q.toUpperCase()) || q.match(/^(-?\d+\.?\d*)\s+(-?\d+\.?\d*)$/);
if (locationMatch) {
var loc = [parseFloat(locationMatch[0]), parseFloat(locationMatch[1])];
+1 -1
View File
@@ -1,4 +1,4 @@
import { default as sexagesimal } from 'sexagesimal';
import * as sexagesimal from 'sexagesimal';
export function FeatureList(context) {
var geocodeResults;