Remove goog.array.insertAt
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user