Fix a silly mistake in skip preupdate/update for PIXI objects

This commit is contained in:
Cameron Foale 2013-11-20 09:45:27 +11:00
parent 40e1b4b9aa
commit 9b6bfa5f37

View file

@ -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)