From 778e867c7978564440eac3e8f36b442aa1ab58a4 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 17 Jul 2018 14:21:50 +0200 Subject: [PATCH] Use extends and super for WebGLMap --- src/ol/WebGLMap.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ol/WebGLMap.js b/src/ol/WebGLMap.js index 97d29032af..cea3990b0c 100644 --- a/src/ol/WebGLMap.js +++ b/src/ol/WebGLMap.js @@ -1,7 +1,6 @@ /** * @module ol/WebGLMap */ -import {inherits} from './util.js'; import PluggableMap from './PluggableMap.js'; import {defaults as defaultControls} from './control.js'; import {defaults as defaultInteractions} from './interaction.js'; @@ -57,14 +56,13 @@ import WebGLVectorLayerRenderer from './renderer/webgl/VectorLayer.js'; * {@link module:ol/layer/Base}, so layers entered in the options or added * with `addLayer` can be groups, which can contain further groups, and so on. * - * @extends {module:ol/PluggableMap} * @fires module:ol/MapBrowserEvent~MapBrowserEvent * @fires module:ol/MapEvent~MapEvent * @fires module:ol/render/Event~RenderEvent#postcompose * @fires module:ol/render/Event~RenderEvent#precompose * @api */ -class WebGLMap { +class WebGLMap extends PluggableMap { /** * @param {module:ol/PluggableMap~MapOptions} options Map options. @@ -78,7 +76,7 @@ class WebGLMap { options.interactions = defaultInteractions(); } - PluggableMap.call(this, options); + super(options); } createRenderer() { @@ -92,7 +90,5 @@ class WebGLMap { } } -inherits(WebGLMap, PluggableMap); - export default WebGLMap;