mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 04:53:38 +00:00
17 lines
291 B
JavaScript
17 lines
291 B
JavaScript
/**
|
|
* [description]
|
|
*
|
|
* @function Phaser.Dom.RemoveFromDOM
|
|
* @since 3.0.0
|
|
*
|
|
* @param {any} element - [description]
|
|
*/
|
|
var RemoveFromDOM = function (element)
|
|
{
|
|
if (element.parentNode)
|
|
{
|
|
element.parentNode.removeChild(element);
|
|
}
|
|
};
|
|
|
|
module.exports = RemoveFromDOM;
|