From ee833b0c2f0c0a8e14f2577f4b66bc0ee0e71371 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 27 Dec 2016 13:26:57 -0700 Subject: [PATCH] Private enum for drag and drop event types --- src/ol/interaction/draganddrop.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ol/interaction/draganddrop.js b/src/ol/interaction/draganddrop.js index 0ac9fdb4c4..31ec5c7c4b 100644 --- a/src/ol/interaction/draganddrop.js +++ b/src/ol/interaction/draganddrop.js @@ -118,7 +118,7 @@ ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, event) { } this.dispatchEvent( new ol.interaction.DragAndDrop.Event( - ol.interaction.DragAndDrop.EventType.ADD_FEATURES, file, + ol.interaction.DragAndDrop.EventType_.ADD_FEATURES, file, features, projection)); }; @@ -177,8 +177,9 @@ ol.interaction.DragAndDrop.prototype.tryReadFeatures_ = function(format, text, o /** * @enum {string} + * @private */ -ol.interaction.DragAndDrop.EventType = { +ol.interaction.DragAndDrop.EventType_ = { /** * Triggered when features are added * @event ol.interaction.DragAndDrop.Event#addfeatures @@ -196,7 +197,7 @@ ol.interaction.DragAndDrop.EventType = { * @constructor * @extends {ol.events.Event} * @implements {oli.interaction.DragAndDropEvent} - * @param {ol.interaction.DragAndDrop.EventType} type Type. + * @param {ol.interaction.DragAndDrop.EventType_} type Type. * @param {File} file File. * @param {Array.=} opt_features Features. * @param {ol.proj.Projection=} opt_projection Projection.