From 0d5168ca0bdfd1ffed3cebe48027571636d73a6d Mon Sep 17 00:00:00 2001 From: Nicholas L Date: Sat, 16 Jan 2016 22:44:43 +1300 Subject: [PATCH] Remove goog.array.insertAt --- src/ol/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/collection.js b/src/ol/collection.js index 005947634c..1893739200 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -180,7 +180,7 @@ ol.Collection.prototype.getLength = function() { * @api stable */ ol.Collection.prototype.insertAt = function(index, elem) { - goog.array.insertAt(this.array_, elem, index); + this.array_.splice(index, 0, elem); this.updateLength_(); this.dispatchEvent( new ol.CollectionEvent(ol.CollectionEventType.ADD, elem, this));