Rename _ol_CollectionEventType_ to CollectionEventType
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from './index.js';
|
||||
import AssertionError from './AssertionError.js';
|
||||
import _ol_CollectionEventType_ from './CollectionEventType.js';
|
||||
import CollectionEventType from './CollectionEventType.js';
|
||||
import _ol_Object_ from './Object.js';
|
||||
import Event from './events/Event.js';
|
||||
|
||||
@@ -158,7 +158,7 @@ _ol_Collection_.prototype.insertAt = function(index, elem) {
|
||||
this.array_.splice(index, 0, elem);
|
||||
this.updateLength_();
|
||||
this.dispatchEvent(
|
||||
new _ol_Collection_.Event(_ol_CollectionEventType_.ADD, elem));
|
||||
new _ol_Collection_.Event(CollectionEventType.ADD, elem));
|
||||
};
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ _ol_Collection_.prototype.removeAt = function(index) {
|
||||
this.array_.splice(index, 1);
|
||||
this.updateLength_();
|
||||
this.dispatchEvent(
|
||||
new _ol_Collection_.Event(_ol_CollectionEventType_.REMOVE, prev));
|
||||
new _ol_Collection_.Event(CollectionEventType.REMOVE, prev));
|
||||
return prev;
|
||||
};
|
||||
|
||||
@@ -239,9 +239,9 @@ _ol_Collection_.prototype.setAt = function(index, elem) {
|
||||
var prev = this.array_[index];
|
||||
this.array_[index] = elem;
|
||||
this.dispatchEvent(
|
||||
new _ol_Collection_.Event(_ol_CollectionEventType_.REMOVE, prev));
|
||||
new _ol_Collection_.Event(CollectionEventType.REMOVE, prev));
|
||||
this.dispatchEvent(
|
||||
new _ol_Collection_.Event(_ol_CollectionEventType_.ADD, elem));
|
||||
new _ol_Collection_.Event(CollectionEventType.ADD, elem));
|
||||
} else {
|
||||
var j;
|
||||
for (j = n; j < index; ++j) {
|
||||
|
||||
Reference in New Issue
Block a user