mirror of
https://github.com/photonstorm/phaser
synced 2025-02-19 07:28:31 +00:00
simplified logic on queueOp starting an unready scene
This commit is contained in:
parent
dd53268a23
commit
b040146b4a
1 changed files with 1 additions and 6 deletions
|
@ -1032,19 +1032,14 @@ var SceneManager = new Class({
|
|||
|
||||
if (!scene)
|
||||
{
|
||||
var isFound = false;
|
||||
for (var i = 0; i < this._pending.length; i++)
|
||||
{
|
||||
if (this._pending[i].key === key)
|
||||
{
|
||||
isFound = true;
|
||||
this.queueOp('start', key, data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isFound)
|
||||
{
|
||||
this.queueOp('start', key, data);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue