Use super.method instead of prototype.method.call

This commit is contained in:
ahocevar
2018-08-06 15:22:22 +02:00
parent c5b42c49d5
commit 2f92e48e93
18 changed files with 25 additions and 25 deletions

View File

@@ -143,7 +143,7 @@ class Cluster extends VectorSource {
this.clear();
this.cluster();
this.addFeatures(this.features);
VectorSource.prototype.refresh.call(this);
super.refresh();
}
/**

View File

@@ -132,7 +132,7 @@ class Static extends ImageSource {
this.image_.setImage(canvas);
}
}
ImageSource.prototype.handleImageChange.call(this, evt);
super.handleImageChange(evt);
}
}

View File

@@ -130,7 +130,7 @@ class TileImage extends UrlTile {
*/
canExpireCache() {
if (!ENABLE_RASTER_REPROJECTION) {
return UrlTile.prototype.canExpireCache.call(this);
return super.canExpireCache();
}
if (this.tileCache.canExpireCache()) {
return true;
@@ -149,7 +149,7 @@ class TileImage extends UrlTile {
*/
expireCache(projection, usedTiles) {
if (!ENABLE_RASTER_REPROJECTION) {
UrlTile.prototype.expireCache.call(this, projection, usedTiles);
super.expireCache(projection, usedTiles);
return;
}
const usedTileCache = this.getTileCacheForProjection(projection);
@@ -188,7 +188,7 @@ class TileImage extends UrlTile {
this.getProjection() && projection && !equivalent(this.getProjection(), projection)) {
return false;
} else {
return UrlTile.prototype.getOpaque.call(this, projection);
return super.getOpaque(projection);
}
}