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

@@ -69,7 +69,7 @@ class CanvasImageLayerRenderer extends IntermediateCanvasRenderer {
if (this.vectorRenderer_) {
this.vectorRenderer_.dispose();
}
IntermediateCanvasRenderer.prototype.disposeInternal.call(this);
super.disposeInternal();
}
/**
@@ -184,7 +184,7 @@ class CanvasImageLayerRenderer extends IntermediateCanvasRenderer {
if (this.vectorRenderer_) {
return this.vectorRenderer_.forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg);
} else {
return IntermediateCanvasRenderer.prototype.forEachFeatureAtCoordinate.call(this, coordinate, frameState, hitTolerance, callback, thisArg);
return super.forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg);
}
}
}