mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Fixed bug from issue #5191
This commit is contained in:
parent
000beb2bd0
commit
d60c9a33d8
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ var AddToDOM = function (element, parent)
|
|||
target = parent;
|
||||
}
|
||||
}
|
||||
else if (element.parentElement)
|
||||
else if (element.parentElement || parent === null)
|
||||
{
|
||||
return element;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue