Private enum for select interaction event types

This commit is contained in:
Tim Schaub
2016-12-27 13:33:18 -07:00
parent 69d345171e
commit 751c05b715
+4 -3
View File
@@ -280,7 +280,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) {
} }
if (selected.length > 0 || deselected.length > 0) { if (selected.length > 0 || deselected.length > 0) {
this.dispatchEvent( this.dispatchEvent(
new ol.interaction.Select.Event(ol.interaction.Select.EventType.SELECT, new ol.interaction.Select.Event(ol.interaction.Select.EventType_.SELECT,
selected, deselected, mapBrowserEvent)); selected, deselected, mapBrowserEvent));
} }
return ol.events.condition.pointerMove(mapBrowserEvent); return ol.events.condition.pointerMove(mapBrowserEvent);
@@ -378,7 +378,7 @@ ol.interaction.Select.prototype.removeFeatureLayerAssociation_ = function(featur
* Events emitted by {@link ol.interaction.Select} instances are instances of * Events emitted by {@link ol.interaction.Select} instances are instances of
* this type. * this type.
* *
* @param {ol.interaction.Select.EventType} type The event type. * @param {ol.interaction.Select.EventType_} type The event type.
* @param {Array.<ol.Feature>} selected Selected features. * @param {Array.<ol.Feature>} selected Selected features.
* @param {Array.<ol.Feature>} deselected Deselected features. * @param {Array.<ol.Feature>} deselected Deselected features.
* @param {ol.MapBrowserEvent} mapBrowserEvent Associated * @param {ol.MapBrowserEvent} mapBrowserEvent Associated
@@ -416,8 +416,9 @@ ol.inherits(ol.interaction.Select.Event, ol.events.Event);
/** /**
* @enum {string} * @enum {string}
* @private
*/ */
ol.interaction.Select.EventType = { ol.interaction.Select.EventType_ = {
/** /**
* Triggered when feature(s) has been (de)selected. * Triggered when feature(s) has been (de)selected.
* @event ol.interaction.Select.Event#select * @event ol.interaction.Select.Event#select