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

@@ -318,18 +318,23 @@ TileSource.prototype.useTile = UNDEFINED;
* @param {string} type Type.
* @param {module:ol/Tile} tile The tile.
*/
export const TileSourceEvent = function(type, tile) {
export class TileSourceEvent {
Event.call(this, type);
constructor(type, tile) {
/**
* The tile related to the event.
* @type {module:ol/Tile}
* @api
*/
this.tile = tile;
Event.call(this, type);
/**
* The tile related to the event.
* @type {module:ol/Tile}
* @api
*/
this.tile = tile;
}
}
};
inherits(TileSourceEvent, Event);
export default TileSource;