mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
#5689 moved _pending to beginning of function
This commit is contained in:
parent
699e81e008
commit
df9f367b95
1 changed files with 2 additions and 2 deletions
|
@ -123,6 +123,8 @@ var TextureManager = new Class({
|
|||
*/
|
||||
boot: function ()
|
||||
{
|
||||
this._pending = 3;
|
||||
|
||||
this.on(Events.LOAD, this.updatePending, this);
|
||||
this.on(Events.ERROR, this.updatePending, this);
|
||||
|
||||
|
@ -132,8 +134,6 @@ var TextureManager = new Class({
|
|||
this.addBase64('__MISSING', config.missingImage);
|
||||
this.addBase64('__WHITE', config.whiteImage);
|
||||
|
||||
this._pending = 3;
|
||||
|
||||
this.game.events.once(GameEvents.DESTROY, this.destroy, this);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue