Private enum for drag and drop event types

This commit is contained in:
Tim Schaub
2016-12-27 13:26:57 -07:00
parent f748245e3d
commit ee833b0c2f

View File

@@ -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.<ol.Feature>=} opt_features Features.
* @param {ol.proj.Projection=} opt_projection Projection.