Merge pull request #309 from DanielApt/remove-patch

Check if parentNode exists
This commit is contained in:
Jun 2015-04-08 18:53:16 +09:00
commit a5aab04264

View File

@ -70,6 +70,8 @@ exports.remove = function (element) {
if (typeof element.remove !== 'undefined') {
element.remove();
} else {
if (element.parentNode) {
element.parentNode.removeChild(element);
}
}
};