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

@@ -108,7 +108,7 @@ class CanvasLineStringReplay extends CanvasReplay {
state.lastStroke = this.coordinates.length;
}
state.lastStroke = 0;
CanvasReplay.prototype.applyStroke.call(this, state);
super.applyStroke(state);
this.instructions.push(beginPathInstruction);
}
}

View File

@@ -91,7 +91,7 @@ class WebGLImageReplay extends WebGLTextureReplay {
this.images_ = null;
this.hitDetectionImages_ = null;
WebGLTextureReplay.prototype.finish.call(this, context);
super.finish(context);
}
/**

View File

@@ -338,7 +338,7 @@ class WebGLTextReplay extends WebGLTextureReplay {
this.images_ = null;
this.atlases_ = {};
this.currAtlas_ = undefined;
WebGLTextureReplay.prototype.finish.call(this, context);
super.finish(context);
}
/**