Avoid an error on double detaching a node

pull/3736/head
Aria Stewart 6 years ago
parent dda9a53727
commit d67a94f1db

@ -7,7 +7,7 @@ export function insert(target: Node, node: Node, anchor?: Node) {
}
export function detach(node: Node) {
node.parentNode.removeChild(node);
if (node.parentNode) node.parentNode.removeChild(node);
}
export function destroy_each(iterations, detaching) {

Loading…
Cancel
Save