Skip to content

Commit 92815d8

Browse files
committed
Merge pull request phaserjs#1007 from mjeffery/dev
Added missing onPackComplete Signal
2 parents fe960b7 + fcc23ef commit 92815d8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/loader/Loader.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ Phaser.Loader = function (game) {
9494
*/
9595
this.onLoadComplete = new Phaser.Signal();
9696

97+
/**
98+
* @property {Phaser.Signal} onPackComplete - This event is dispatched when an asset pack has either loaded or failed.
99+
*/
100+
this.onPackComplete = new Phaser.Signal();
101+
97102
/**
98103
* @property {array} _packList - Contains all the assets packs.
99104
* @private
@@ -1101,7 +1106,7 @@ Phaser.Loader.prototype = {
11011106

11021107
console.warn("Phaser.Loader error loading pack file: " + this._packList[index].key + ' from URL ' + this._packList[index].url);
11031108

1104-
this.nextPack(index, true);
1109+
this.nextPack(index, false);
11051110

11061111
},
11071112

0 commit comments

Comments
 (0)