Use extends and super for MapBrowserPointerEvent
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
/**
|
||||
* @module ol/MapBrowserPointerEvent
|
||||
*/
|
||||
import {inherits} from './util.js';
|
||||
import MapBrowserEvent from './MapBrowserEvent.js';
|
||||
|
||||
/**
|
||||
* @extends {module:ol/MapBrowserEvent}
|
||||
*/
|
||||
class MapBrowserPointerEvent {
|
||||
class MapBrowserPointerEvent extends MapBrowserEvent {
|
||||
|
||||
/**
|
||||
* @param {string} type Event type.
|
||||
@@ -18,8 +14,7 @@ class MapBrowserPointerEvent {
|
||||
*/
|
||||
constructor(type, map, pointerEvent, opt_dragging, opt_frameState) {
|
||||
|
||||
MapBrowserEvent.call(this, type, map, pointerEvent.originalEvent, opt_dragging,
|
||||
opt_frameState);
|
||||
super(type, map, pointerEvent.originalEvent, opt_dragging, opt_frameState);
|
||||
|
||||
/**
|
||||
* @const
|
||||
@@ -31,6 +26,4 @@ class MapBrowserPointerEvent {
|
||||
|
||||
}
|
||||
|
||||
inherits(MapBrowserPointerEvent, MapBrowserEvent);
|
||||
|
||||
export default MapBrowserPointerEvent;
|
||||
|
||||
Reference in New Issue
Block a user