Fix failing test
This commit is contained in:
parent
633f1f53d3
commit
bb58ab98e3
@ -70,6 +70,8 @@ exports.remove = function (element) {
|
|||||||
if (typeof element.remove !== 'undefined') {
|
if (typeof element.remove !== 'undefined') {
|
||||||
element.remove();
|
element.remove();
|
||||||
} else {
|
} else {
|
||||||
element.parentNode && element.parentNode.removeChild(element);
|
if (element.parentNode) {
|
||||||
|
element.parentNode.removeChild(element);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user