Only export handleEvent where it is used by other interactions
This commit is contained in:
@@ -40,7 +40,7 @@ const DragAndDrop = function(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
Interaction.call(this, {
|
||||
handleEvent: DragAndDrop.handleEvent
|
||||
handleEvent: TRUE
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -152,17 +152,6 @@ DragAndDrop.prototype.handleResult_ = function(file, event) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Handles the {@link ol.MapBrowserEvent map browser event} unconditionally and
|
||||
* neither prevents the browser default nor stops event propagation.
|
||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||
* @return {boolean} `false` to stop event propagation.
|
||||
* @this {ol.interaction.DragAndDrop}
|
||||
* @api
|
||||
*/
|
||||
DragAndDrop.handleEvent = TRUE;
|
||||
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user