From de2ee2451e2f8ebc4546971cfd5f365ffbd12044 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 23 Mar 2014 19:44:55 +0100 Subject: [PATCH] Use ol.array.safeExtend in ol.geom.LineString --- src/ol/geom/linestring.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/geom/linestring.js b/src/ol/geom/linestring.js index 83bed93c14..6dc2319725 100644 --- a/src/ol/geom/linestring.js +++ b/src/ol/geom/linestring.js @@ -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(); };