Object.assign not supported on IE11 or PhantomJS, use _.assign

This commit is contained in:
Bryan Housel
2017-02-02 16:00:19 -05:00
parent 0419230321
commit bc39bbf2d6
+2 -1
View File
@@ -1,4 +1,5 @@
import * as d3 from 'd3';
import _ from 'lodash';
import rbush from 'rbush';
import { geoExtent } from '../geo/index';
import { utilQsString } from '../util/index';
@@ -36,7 +37,7 @@ export default {
return callback(result.error);
var extent = geoExtent(location).padByMeters(1000);
nominatimCache.insert(Object.assign(extent.bbox(),
nominatimCache.insert(_.assign(extent.bbox(),
{ data: result.address.country_code }
));