mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 15:08:31 +00:00
fixed onPackComplete Signal
This commit is contained in:
parent
0b903bf792
commit
fcc23ef5d2
1 changed files with 6 additions and 1 deletions
|
@ -94,6 +94,11 @@ Phaser.Loader = function (game) {
|
||||||
*/
|
*/
|
||||||
this.onLoadComplete = new Phaser.Signal();
|
this.onLoadComplete = new Phaser.Signal();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property {Phaser.Signal} onPackComplete - This event is dispatched when an asset pack has either loaded or failed.
|
||||||
|
*/
|
||||||
|
this.onPackComplete = new Phaser.Signal();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {array} _packList - Contains all the assets packs.
|
* @property {array} _packList - Contains all the assets packs.
|
||||||
* @private
|
* @private
|
||||||
|
@ -1101,7 +1106,7 @@ Phaser.Loader.prototype = {
|
||||||
|
|
||||||
console.warn("Phaser.Loader error loading pack file: " + this._packList[index].key + ' from URL ' + this._packList[index].url);
|
console.warn("Phaser.Loader error loading pack file: " + this._packList[index].key + ' from URL ' + this._packList[index].url);
|
||||||
|
|
||||||
this.nextPack(index, true);
|
this.nextPack(index, false);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue