From 751c05b715b466e22bac5c253c39b4eb25e414e8 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 27 Dec 2016 13:33:18 -0700 Subject: [PATCH] Private enum for select interaction event types --- src/ol/interaction/select.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ol/interaction/select.js b/src/ol/interaction/select.js index 5f12ccf82c..0be3c9361a 100644 --- a/src/ol/interaction/select.js +++ b/src/ol/interaction/select.js @@ -280,7 +280,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) { } if (selected.length > 0 || deselected.length > 0) { 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)); } 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 * this type. * - * @param {ol.interaction.Select.EventType} type The event type. + * @param {ol.interaction.Select.EventType_} type The event type. * @param {Array.} selected Selected features. * @param {Array.} deselected Deselected features. * @param {ol.MapBrowserEvent} mapBrowserEvent Associated @@ -416,8 +416,9 @@ ol.inherits(ol.interaction.Select.Event, ol.events.Event); /** * @enum {string} + * @private */ -ol.interaction.Select.EventType = { +ol.interaction.Select.EventType_ = { /** * Triggered when feature(s) has been (de)selected. * @event ol.interaction.Select.Event#select