From a64a81f96fd63d0c7e47be0de2be03f83869b042 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 4 Sep 2023 10:52:47 +0200 Subject: [PATCH] [phaser] Remove superfluous assignment. --- spine-ts/spine-phaser/src/SpinePlugin.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spine-ts/spine-phaser/src/SpinePlugin.ts b/spine-ts/spine-phaser/src/SpinePlugin.ts index 50a037b79..7ce5c4515 100644 --- a/spine-ts/spine-phaser/src/SpinePlugin.ts +++ b/spine-ts/spine-phaser/src/SpinePlugin.ts @@ -264,7 +264,7 @@ interface SpineSkeletonDataFileConfig { class SpineSkeletonDataFile extends Phaser.Loader.MultiFile { constructor (loader: Phaser.Loader.LoaderPlugin, key: string | SpineSkeletonDataFileConfig, url?: string, public fileType?: SpineSkeletonDataFileType, xhrSettings?: Phaser.Types.Loader.XHRSettingsObject) { - + if (typeof key !== "string") { const config = key; key = config.key; @@ -272,7 +272,7 @@ class SpineSkeletonDataFile extends Phaser.Loader.MultiFile { fileType = config.type === "spineJson" ? SpineSkeletonDataFileType.json : SpineSkeletonDataFileType.binary; xhrSettings = config.xhrSettings; } - + let file = null; let isJson = fileType == SpineSkeletonDataFileType.json; if (isJson) { @@ -311,7 +311,7 @@ interface SpineAtlasFileConfig { class SpineAtlasFile extends Phaser.Loader.MultiFile { constructor (loader: Phaser.Loader.LoaderPlugin, key: string | SpineAtlasFileConfig, url?: string, public premultipliedAlpha: boolean = true, xhrSettings?: Phaser.Types.Loader.XHRSettingsObject) { - + if (typeof key !== "string") { const config = key; key = config.key; @@ -328,8 +328,6 @@ class SpineAtlasFile extends Phaser.Loader.MultiFile { extension: "atlas" }) ]); - - this.premultipliedAlpha = premultipliedAlpha; } onFileComplete (file: Phaser.Loader.File) {