Remove goog.array.insertAt

This commit is contained in:
Nicholas L
2016-01-16 22:44:43 +13:00
parent 39ead1bb49
commit 0d5168ca0b
+1 -1
View File
@@ -180,7 +180,7 @@ ol.Collection.prototype.getLength = function() {
* @api stable * @api stable
*/ */
ol.Collection.prototype.insertAt = function(index, elem) { ol.Collection.prototype.insertAt = function(index, elem) {
goog.array.insertAt(this.array_, elem, index); this.array_.splice(index, 0, elem);
this.updateLength_(); this.updateLength_();
this.dispatchEvent( this.dispatchEvent(
new ol.CollectionEvent(ol.CollectionEventType.ADD, elem, this)); new ol.CollectionEvent(ol.CollectionEventType.ADD, elem, this));