Fixed problem with outdated loader and error handler.s

This commit is contained in:
Uwe Oestermeier 2022-05-02 16:41:22 +02:00
parent 51b0ef4b1b
commit 074fb67906

View File

@ -85,8 +85,8 @@ export class PIXITileLoader extends TileLoader {
super(tiles)
this.destroyed = false
this.loader = new PIXI.Loader()
this.loader.on('load', this._onLoaded.bind(this))
this.loader.on('error', this._onError.bind(this))
this.loader.onLoad.add(this._onLoaded.bind(this))
this.loader.onError.add(this._onError.bind(this))
if (compression) {
this.loader.use(PIXI.compressedTextures.ImageParser.use)
}