Move opt_useCapture arg to the end of the list
This commit is contained in:
committed by
Andreas Hocevar
parent
dc0393acff
commit
80df1f5ae8
@@ -144,7 +144,7 @@ ol.source.ImageMapGuide.prototype.getImageInternal = function(extent, resolution
|
||||
this.getAttributions(), imageUrl, this.crossOrigin_,
|
||||
this.imageLoadFunction_);
|
||||
ol.events.listen(image, ol.events.EventType.CHANGE,
|
||||
this.handleImageChange, false, this);
|
||||
this.handleImageChange, this);
|
||||
} else {
|
||||
image = null;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ ol.source.ImageStatic = function(options) {
|
||||
this.imageSize_ = options.imageSize ? options.imageSize : null;
|
||||
|
||||
ol.events.listen(this.image_, ol.events.EventType.CHANGE,
|
||||
this.handleImageChange, false, this);
|
||||
this.handleImageChange, this);
|
||||
|
||||
};
|
||||
goog.inherits(ol.source.ImageStatic, ol.source.Image);
|
||||
|
||||
@@ -90,7 +90,7 @@ ol.source.ImageVector = function(options) {
|
||||
this.setStyle(options.style);
|
||||
|
||||
ol.events.listen(this.source_, ol.events.EventType.CHANGE,
|
||||
this.handleSourceChange_, undefined, this);
|
||||
this.handleSourceChange_, this);
|
||||
|
||||
};
|
||||
goog.inherits(ol.source.ImageVector, ol.source.ImageCanvas);
|
||||
|
||||
@@ -242,7 +242,7 @@ ol.source.ImageWMS.prototype.getImageInternal = function(extent, resolution, pix
|
||||
this.renderedRevision_ = this.getRevision();
|
||||
|
||||
ol.events.listen(this.image_, ol.events.EventType.CHANGE,
|
||||
this.handleImageChange, false, this);
|
||||
this.handleImageChange, this);
|
||||
|
||||
return this.image_;
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ ol.source.Raster = function(options) {
|
||||
|
||||
for (var r = 0, rr = this.renderers_.length; r < rr; ++r) {
|
||||
ol.events.listen(this.renderers_[r], ol.events.EventType.CHANGE,
|
||||
this.changed, false, this);
|
||||
this.changed, this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -198,7 +198,7 @@ ol.source.TileImage.prototype.createTile_ = function(z, x, y, pixelRatio, projec
|
||||
this.tileLoadFunction);
|
||||
tile.key = key;
|
||||
ol.events.listen(tile, ol.events.EventType.CHANGE,
|
||||
this.handleTileChange, false, this);
|
||||
this.handleTileChange, this);
|
||||
return tile;
|
||||
};
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ ol.source.TileUTFGridTile_.prototype.forDataAtCoordinate = function(coordinate,
|
||||
if (this.state == ol.TileState.IDLE && opt_request === true) {
|
||||
ol.events.listenOnce(this, ol.events.EventType.CHANGE, function(e) {
|
||||
callback.call(opt_this, this.getData(coordinate));
|
||||
}, false, this);
|
||||
}, this);
|
||||
this.loadInternal_();
|
||||
} else {
|
||||
if (opt_request === true) {
|
||||
|
||||
@@ -228,12 +228,10 @@ ol.source.Vector.prototype.setupChangeEvents_ = function(featureKey, feature) {
|
||||
goog.asserts.assert(!(featureKey in this.featureChangeKeys_),
|
||||
'key (%s) not yet registered in featureChangeKey', featureKey);
|
||||
this.featureChangeKeys_[featureKey] = [
|
||||
ol.events.listen(feature,
|
||||
ol.events.EventType.CHANGE,
|
||||
this.handleFeatureChange_, false, this),
|
||||
ol.events.listen(feature,
|
||||
ol.ObjectEventType.PROPERTYCHANGE,
|
||||
this.handleFeatureChange_, false, this)
|
||||
ol.events.listen(feature, ol.events.EventType.CHANGE,
|
||||
this.handleFeatureChange_, this),
|
||||
ol.events.listen(feature, ol.ObjectEventType.PROPERTYCHANGE,
|
||||
this.handleFeatureChange_, this)
|
||||
];
|
||||
};
|
||||
|
||||
@@ -352,7 +350,7 @@ ol.source.Vector.prototype.bindFeaturesCollection_ = function(collection) {
|
||||
this.addFeature(feature);
|
||||
modifyingCollection = false;
|
||||
}
|
||||
}, false, this);
|
||||
}, this);
|
||||
ol.events.listen(collection, ol.CollectionEventType.REMOVE,
|
||||
function(evt) {
|
||||
if (!modifyingCollection) {
|
||||
@@ -362,7 +360,7 @@ ol.source.Vector.prototype.bindFeaturesCollection_ = function(collection) {
|
||||
this.removeFeature(feature);
|
||||
modifyingCollection = false;
|
||||
}
|
||||
}, false, this);
|
||||
}, this);
|
||||
this.featuresCollection_ = collection;
|
||||
};
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ ol.source.VectorTile.prototype.getTile = function(z, x, y, pixelRatio, projectio
|
||||
tileUrl !== undefined ? tileUrl : '',
|
||||
this.format_, this.tileLoadFunction);
|
||||
ol.events.listen(tile, ol.events.EventType.CHANGE,
|
||||
this.handleTileChange, false, this);
|
||||
this.handleTileChange, this);
|
||||
|
||||
this.tileCache.set(tileCoordKey, tile);
|
||||
return tile;
|
||||
|
||||
Reference in New Issue
Block a user