Merge pull request #7636 from marcjansen/named-exports-array

Named exports from the ol/array module
This commit is contained in:
Marc Jansen
2017-12-19 22:32:14 +01:00
committed by GitHub
47 changed files with 296 additions and 298 deletions

View File

@@ -2,7 +2,7 @@
* @module ol/geom/LineString
*/
import {inherits} from '../index.js';
import _ol_array_ from '../array.js';
import {extend} from '../array.js';
import {closestSquaredDistanceXY} from '../extent.js';
import GeometryLayout from '../geom/GeometryLayout.js';
import GeometryType from '../geom/GeometryType.js';
@@ -70,7 +70,7 @@ LineString.prototype.appendCoordinate = function(coordinate) {
if (!this.flatCoordinates) {
this.flatCoordinates = coordinate.slice();
} else {
_ol_array_.extend(this.flatCoordinates, coordinate);
extend(this.flatCoordinates, coordinate);
}
this.changed();
};