mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Merge pull request #5192 from MerganThePirate/master
Fixed bug from issue #5191
This commit is contained in:
commit
b8d12916e9
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