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

@@ -134,18 +134,22 @@ const DrawEventType = {
* @param {module:ol/interaction/Draw~DrawEventType} type Type.
* @param {module:ol/Feature} feature The feature drawn.
*/
const DrawEvent = function(type, feature) {
class DrawEvent {
Event.call(this, type);
constructor(type, feature) {
/**
* The feature being drawn.
* @type {module:ol/Feature}
* @api
*/
this.feature = feature;
Event.call(this, type);
};
/**
* The feature being drawn.
* @type {module:ol/Feature}
* @api
*/
this.feature = feature;
}
}
inherits(DrawEvent, Event);