diff --git a/src/ol/MapEvent.js b/src/ol/MapEvent.js index 0d9c78a861..ac22f422b7 100644 --- a/src/ol/MapEvent.js +++ b/src/ol/MapEvent.js @@ -1,17 +1,14 @@ /** * @module ol/MapEvent */ -import {inherits} from './util.js'; import Event from './events/Event.js'; /** * @classdesc * Events emitted as map events are instances of this type. * See {@link module:ol/Map~Map} for which events trigger a map event. - * - * @extends {module:ol/events/Event} */ -class MapEvent { +class MapEvent extends Event { /** * @param {string} type Event type. @@ -20,7 +17,7 @@ class MapEvent { */ constructor(type, map, opt_frameState) { - Event.call(this, type); + super(type); /** * The map where the event occurred. @@ -40,6 +37,4 @@ class MapEvent { } -inherits(MapEvent, Event); - export default MapEvent;