mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Fixed canvas destroy if undefined.
This commit is contained in:
parent
ef3cb1f31d
commit
58d37b51fe
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ Phaser.Text.prototype.destroy = function (destroyChildren) {
|
|||
|
||||
this.texture.destroy(true);
|
||||
|
||||
if (this.canvas.parentNode)
|
||||
if (this.canvas && this.canvas.parentNode)
|
||||
{
|
||||
this.canvas.parentNode.removeChild(this.canvas);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue