mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +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();
|
||||
|
||||
/**
|
||||
* @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.
|
||||
* @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);
|
||||
|
||||
this.nextPack(index, true);
|
||||
this.nextPack(index, false);
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue