mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
CanvasPool parent checks are now falsey, not just !== null.
This commit is contained in:
parent
33150018ad
commit
8a3c71f050
1 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ PIXI.CanvasPool = {
|
|||
|
||||
for (var i = 0; i < pool.length; i++)
|
||||
{
|
||||
if (pool[i].parent === null)
|
||||
if (!pool[i].parent)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ PIXI.CanvasPool = {
|
|||
|
||||
for (var i = 0; i < pool.length; i++)
|
||||
{
|
||||
if (pool[i].parent !== null)
|
||||
if (pool[i].parent)
|
||||
{
|
||||
c++;
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ PIXI.CanvasPool = {
|
|||
|
||||
for (var i = 0; i < pool.length; i++)
|
||||
{
|
||||
if (pool[i].parent === null)
|
||||
if (!pool[i].parent)
|
||||
{
|
||||
c++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue