mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Fix a silly mistake in skip preupdate/update for PIXI objects
This commit is contained in:
parent
40e1b4b9aa
commit
9b6bfa5f37
1 changed files with 5 additions and 3 deletions
|
@ -76,18 +76,20 @@ Phaser.World.prototype.update = function () {
|
|||
if (this.game.stage._stage.first._iNext)
|
||||
{
|
||||
var currentNode = this.game.stage._stage.first._iNext;
|
||||
var skipChildren = false;
|
||||
var skipChildren;
|
||||
|
||||
do
|
||||
{
|
||||
skipChildren = false;
|
||||
|
||||
if (currentNode['preUpdate'])
|
||||
{
|
||||
skipChildren = (currentNode.preUpdate() == false);
|
||||
skipChildren = (currentNode.preUpdate() === false);
|
||||
}
|
||||
|
||||
if (currentNode['update'])
|
||||
{
|
||||
skipChildren = (currentNode.update() == false) || skipChildren;
|
||||
skipChildren = (currentNode.update() === false) || skipChildren;
|
||||
}
|
||||
|
||||
if(skipChildren)
|
||||
|
|
Loading…
Reference in a new issue