Use ol.array.safeExtend in ol.geom.LineString

This commit is contained in:
Tom Payne
2014-03-23 19:44:55 +01:00
parent 71dae7b71e
commit de2ee2451e

View File

@@ -2,6 +2,7 @@ goog.provide('ol.geom.LineString');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('ol.array');
goog.require('ol.extent');
goog.require('ol.geom.GeometryType');
goog.require('ol.geom.SimpleGeometry');
@@ -63,7 +64,7 @@ ol.geom.LineString.prototype.appendCoordinate = function(coordinate) {
if (goog.isNull(this.flatCoordinates)) {
this.flatCoordinates = coordinate.slice();
} else {
goog.array.extend(this.flatCoordinates, coordinate);
ol.array.safeExtend(this.flatCoordinates, coordinate);
}
this.dispatchChangeEvent();
};