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