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
+33 -28
View File
@@ -1,6 +1,7 @@
/**
* @module ol/events/Event
*/
/**
* @classdesc
* Stripped down implementation of the W3C DOM Level 2 Event interface.
@@ -14,45 +15,49 @@
* @constructor
* @param {string} type Type.
*/
const Event = function(type) {
class Event {
/**
* @type {boolean}
*/
this.propagationStopped;
constructor(type) {
/**
* The event type.
* @type {string}
* @api
*/
this.type = type;
/**
* @type {boolean}
*/
this.propagationStopped;
/**
* The event target.
* @type {Object}
* @api
*/
this.target = null;
/**
* The event type.
* @type {string}
* @api
*/
this.type = type;
};
/**
* Stop event propagation.
* @function
* @api
*/
Event.prototype.preventDefault =
/**
* The event target.
* @type {Object}
* @api
*/
this.target = null;
}
/**
* Stop event propagation.
* @function
* @api
*/
Event.prototype.stopPropagation = function() {
preventDefault() {
this.propagationStopped = true;
};
}
/**
* Stop event propagation.
* @function
* @api
*/
stopPropagation() {
this.propagationStopped = true;
}
}
/**