Move opt_useCapture arg to the end of the list
This commit is contained in:
committed by
Andreas Hocevar
parent
dc0393acff
commit
80df1f5ae8
@@ -152,10 +152,10 @@ ol.interaction.DragAndDrop.prototype.setMap = function(map) {
|
||||
var dropArea = map.getViewport();
|
||||
this.dropListenKeys_ = [
|
||||
ol.events.listen(dropArea, ol.events.EventType.DROP,
|
||||
ol.interaction.DragAndDrop.handleDrop_, false, this),
|
||||
ol.interaction.DragAndDrop.handleDrop_, this),
|
||||
ol.events.listen(dropArea, [ol.events.EventType.DRAGENTER,
|
||||
ol.events.EventType.DRAGOVER, ol.events.EventType.DROP],
|
||||
ol.interaction.DragAndDrop.handleStop_, false, this)
|
||||
ol.interaction.DragAndDrop.handleStop_, this)
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
@@ -302,7 +302,7 @@ ol.interaction.Draw = function(options) {
|
||||
|
||||
ol.events.listen(this,
|
||||
ol.Object.getChangeEventType(ol.interaction.InteractionProperty.ACTIVE),
|
||||
this.updateState_, false, this);
|
||||
this.updateState_, this);
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.Draw, ol.interaction.Pointer);
|
||||
|
||||
@@ -230,9 +230,9 @@ ol.interaction.Modify = function(options) {
|
||||
|
||||
this.features_.forEach(this.addFeature_, this);
|
||||
ol.events.listen(this.features_, ol.CollectionEventType.ADD,
|
||||
this.handleFeatureAdd_, false, this);
|
||||
this.handleFeatureAdd_, this);
|
||||
ol.events.listen(this.features_, ol.CollectionEventType.REMOVE,
|
||||
this.handleFeatureRemove_, false, this);
|
||||
this.handleFeatureRemove_, this);
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.Modify, ol.interaction.Pointer);
|
||||
@@ -252,7 +252,7 @@ ol.interaction.Modify.prototype.addFeature_ = function(feature) {
|
||||
this.handlePointerAtPixel_(this.lastPixel_, map);
|
||||
}
|
||||
ol.events.listen(feature, ol.events.EventType.CHANGE,
|
||||
this.handleFeatureChange_, false, this);
|
||||
this.handleFeatureChange_, this);
|
||||
};
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ ol.interaction.Modify.prototype.removeFeature_ = function(feature) {
|
||||
this.vertexFeature_ = null;
|
||||
}
|
||||
ol.events.unlisten(feature, ol.events.EventType.CHANGE,
|
||||
this.handleFeatureChange_, false, this);
|
||||
this.handleFeatureChange_, this);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -209,9 +209,9 @@ ol.interaction.Select = function(opt_options) {
|
||||
|
||||
var features = this.featureOverlay_.getSource().getFeaturesCollection();
|
||||
ol.events.listen(features, ol.CollectionEventType.ADD,
|
||||
this.addFeature_, false, this);
|
||||
this.addFeature_, this);
|
||||
ol.events.listen(features, ol.CollectionEventType.REMOVE,
|
||||
this.removeFeature_, false, this);
|
||||
this.removeFeature_, this);
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.Select, ol.interaction.Interaction);
|
||||
|
||||
Reference in New Issue
Block a user