mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
During Game.runDestroy
it will now check for this.domContainer.parentNode
before trying to remove it, preventing errors if the DOM Container has already been removed. Fix #6559
This commit is contained in:
parent
94b13ad6dd
commit
3b190360f1
1 changed files with 1 additions and 1 deletions
|
@ -769,7 +769,7 @@ var Game = new Class({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.domContainer)
|
if (this.domContainer && this.domContainer.parentNode)
|
||||||
{
|
{
|
||||||
this.domContainer.parentNode.removeChild(this.domContainer);
|
this.domContainer.parentNode.removeChild(this.domContainer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue