Skip to content

Commit 8f54932

Browse files
committed
Remove canvas from parent node.
1 parent 3d0be3e commit 8f54932

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/boot/Game.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,11 @@ var Game = new Class({
592592
if (this.removeCanvas && this.canvas)
593593
{
594594
CanvasPool.remove(this.canvas);
595+
596+
if (this.canvas.parentNode)
597+
{
598+
this.canvas.parentNode.removeChild(this.canvas);
599+
}
595600
}
596601

597602
this.loop.destroy();

0 commit comments

Comments
 (0)