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
+1 -1
View File
@@ -291,7 +291,7 @@ class WebGLMapRenderer extends MapRenderer {
});
}
this.context_.dispose();
MapRenderer.prototype.disposeInternal.call(this);
super.disposeInternal();
}
/**
+2 -2
View File
@@ -100,7 +100,7 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
disposeInternal() {
const context = this.mapRenderer.getContext();
context.deleteBuffer(this.renderArrayBuffer_);
WebGLLayerRenderer.prototype.disposeInternal.call(this);
super.disposeInternal();
}
/**
@@ -135,7 +135,7 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
* @inheritDoc
*/
handleWebGLContextLost() {
WebGLLayerRenderer.prototype.handleWebGLContextLost.call(this);
super.handleWebGLContextLost();
this.locations_ = null;
}
+1 -1
View File
@@ -103,7 +103,7 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
replayGroup.getDeleteResourcesFunction(context)();
this.replayGroup_ = null;
}
WebGLLayerRenderer.prototype.disposeInternal.call(this);
super.disposeInternal();
}
/**