phaser/v3/src/dom/RemoveFromDOM.js

18 lines
291 B
JavaScript
Raw Normal View History

2017-10-12 14:09:52 +00:00
/**
* [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;