Manual class transform

This commit is contained in:
Tim Schaub
2018-07-16 17:09:50 -06:00
parent 7b4a73f3b9
commit f78d0d4cfa
96 changed files with 8112 additions and 7964 deletions

View File

@@ -99,24 +99,29 @@ const ModifyEventType = {
* @param {module:ol/MapBrowserPointerEvent} mapBrowserPointerEvent
* Associated {@link module:ol/MapBrowserPointerEvent}.
*/
export const ModifyEvent = function(type, features, mapBrowserPointerEvent) {
export class ModifyEvent {
Event.call(this, type);
constructor(type, features, mapBrowserPointerEvent) {
/**
* The features being modified.
* @type {module:ol/Collection.<module:ol/Feature>}
* @api
*/
this.features = features;
Event.call(this, type);
/**
* Associated {@link module:ol/MapBrowserEvent}.
* @type {module:ol/MapBrowserEvent}
* @api
*/
this.mapBrowserEvent = mapBrowserPointerEvent;
};
/**
* The features being modified.
* @type {module:ol/Collection.<module:ol/Feature>}
* @api
*/
this.features = features;
/**
* Associated {@link module:ol/MapBrowserEvent}.
* @type {module:ol/MapBrowserEvent}
* @api
*/
this.mapBrowserEvent = mapBrowserPointerEvent;
}
}
inherits(ModifyEvent, Event);