Fix failing test

This commit is contained in:
DanielApt 2015-03-27 18:28:51 +00:00
parent 633f1f53d3
commit bb58ab98e3

View File

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