Remove goog.array.insertAt
This commit is contained in:
1 parent
39ead1bb49
commit
0d5168ca0b
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user