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
+3 -3
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);
}
}