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

@@ -51,18 +51,23 @@ const ImageSourceEventType = {
* @param {string} type Type.
* @param {module:ol/Image} image The image.
*/
const ImageSourceEvent = function(type, image) {
class ImageSourceEvent {
Event.call(this, type);
constructor(type, image) {
/**
* The image related to the event.
* @type {module:ol/Image}
* @api
*/
this.image = image;
Event.call(this, type);
/**
* The image related to the event.
* @type {module:ol/Image}
* @api
*/
this.image = image;
}
}
};
inherits(ImageSourceEvent, Event);