Rename _ol_CollectionEventType_ to CollectionEventType

This commit is contained in:
Frederic Junod
2017-12-18 10:39:52 +01:00
parent 4275a66b49
commit 64e7ae6eb8
8 changed files with 39 additions and 39 deletions

View File

@@ -3,7 +3,7 @@
*/
import {getUid, inherits} from '../index.js';
import _ol_Collection_ from '../Collection.js';
import _ol_CollectionEventType_ from '../CollectionEventType.js';
import CollectionEventType from '../CollectionEventType.js';
import _ol_Feature_ from '../Feature.js';
import MapBrowserEventType from '../MapBrowserEventType.js';
import MapBrowserPointerEvent from '../MapBrowserPointerEvent.js';
@@ -214,9 +214,9 @@ var _ol_interaction_Modify_ = function(options) {
this.features_ = features;
this.features_.forEach(this.addFeature_, this);
_ol_events_.listen(this.features_, _ol_CollectionEventType_.ADD,
_ol_events_.listen(this.features_, CollectionEventType.ADD,
this.handleFeatureAdd_, this);
_ol_events_.listen(this.features_, _ol_CollectionEventType_.REMOVE,
_ol_events_.listen(this.features_, CollectionEventType.REMOVE,
this.handleFeatureRemove_, this);
/**

View File

@@ -2,7 +2,7 @@
* @module ol/interaction/Select
*/
import {getUid, inherits} from '../index.js';
import _ol_CollectionEventType_ from '../CollectionEventType.js';
import CollectionEventType from '../CollectionEventType.js';
import _ol_array_ from '../array.js';
import _ol_events_ from '../events.js';
import Event from '../events/Event.js';
@@ -135,9 +135,9 @@ var _ol_interaction_Select_ = function(opt_options) {
this.featureLayerAssociation_ = {};
var features = this.featureOverlay_.getSource().getFeaturesCollection();
_ol_events_.listen(features, _ol_CollectionEventType_.ADD,
_ol_events_.listen(features, CollectionEventType.ADD,
this.addFeature_, this);
_ol_events_.listen(features, _ol_CollectionEventType_.REMOVE,
_ol_events_.listen(features, CollectionEventType.REMOVE,
this.removeFeature_, this);
};

View File

@@ -3,7 +3,7 @@
*/
import {getUid, inherits} from '../index.js';
import _ol_Collection_ from '../Collection.js';
import _ol_CollectionEventType_ from '../CollectionEventType.js';
import CollectionEventType from '../CollectionEventType.js';
import _ol_coordinate_ from '../coordinate.js';
import _ol_events_ from '../events.js';
import EventType from '../events/EventType.js';
@@ -309,9 +309,9 @@ _ol_interaction_Snap_.prototype.setMap = function(map) {
if (map) {
if (this.features_) {
keys.push(
_ol_events_.listen(this.features_, _ol_CollectionEventType_.ADD,
_ol_events_.listen(this.features_, CollectionEventType.ADD,
this.handleFeatureAdd_, this),
_ol_events_.listen(this.features_, _ol_CollectionEventType_.REMOVE,
_ol_events_.listen(this.features_, CollectionEventType.REMOVE,
this.handleFeatureRemove_, this)
);
} else if (this.source_) {