Add an "handleEvent" interaction option

This commit is contained in:
Éric Lemoine
2014-12-08 17:52:34 +01:00
parent df170859cc
commit d07185e8f2
15 changed files with 139 additions and 86 deletions
+8 -4
View File
@@ -29,7 +29,9 @@ ol.interaction.DragAndDrop = function(opt_options) {
var options = goog.isDef(opt_options) ? opt_options : {};
goog.base(this);
goog.base(this, {
handleEvent: ol.interaction.DragAndDrop.handleEvent
});
/**
* @private
@@ -133,10 +135,12 @@ ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, result) {
/**
* @inheritDoc
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
* @return {boolean} `false` to stop event propagation.
* @this {ol.interaction.DragAndDrop}
* @api
*/
ol.interaction.DragAndDrop.prototype.handleMapBrowserEvent =
goog.functions.TRUE;
ol.interaction.DragAndDrop.handleEvent = goog.functions.TRUE;
/**