Call super before accessing this in raster source
This commit is contained in:
@@ -145,6 +145,7 @@ class RasterSource extends ImageSource {
|
||||
* @api
|
||||
*/
|
||||
constructor(options) {
|
||||
super({});
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -239,8 +240,6 @@ class RasterSource extends ImageSource {
|
||||
wantedTiles: {}
|
||||
};
|
||||
|
||||
super({});
|
||||
|
||||
if (options.operation !== undefined) {
|
||||
this.setOperation(options.operation, options.lib);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user