mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
swapped queue loop to use _queue prop rather than queueLength var
This commit is contained in:
parent
14399d6910
commit
66e881c7eb
1 changed files with 4 additions and 4 deletions
|
@ -166,13 +166,13 @@ var SceneManager = new Class({
|
|||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < queueLength; i++)
|
||||
for (i = 0; i < this._queue.length; i++)
|
||||
{
|
||||
entry = this._queue[i];
|
||||
|
||||
this[entry.op](entry.keyA, entry.keyB);
|
||||
}
|
||||
|
||||
|
||||
this._queue.length = 0;
|
||||
},
|
||||
|
||||
|
@ -278,7 +278,7 @@ var SceneManager = new Class({
|
|||
if (scene.sys.load)
|
||||
{
|
||||
loader = scene.sys.load;
|
||||
|
||||
|
||||
loader.reset();
|
||||
}
|
||||
|
||||
|
@ -872,7 +872,7 @@ var SceneManager = new Class({
|
|||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.bootScene(scene);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue