Remove remaining use of inherits in src
This commit is contained in:
@@ -8,13 +8,13 @@ import WebGLShader from '../webgl/Shader.js';
|
||||
/**
|
||||
* @extends {module:ol/webgl/Shader}
|
||||
*/
|
||||
class WebGLFragment {
|
||||
class WebGLFragment extends WebGLShader {
|
||||
|
||||
/**
|
||||
* @param {string} source Source.
|
||||
*/
|
||||
constructor(source) {
|
||||
WebGLShader.call(this, source);
|
||||
super(source);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,5 @@ class WebGLFragment {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(WebGLFragment, WebGLShader);
|
||||
|
||||
|
||||
export default WebGLFragment;
|
||||
|
||||
Reference in New Issue
Block a user