3187 check-parent-node-when-detaching

pull/3188/head
Maxim Matyunin 6 years ago
parent 943c04834a
commit a5420adccf

@ -7,6 +7,8 @@ export function insert(target: Node, node: Node, anchor?: Node) {
}
export function detach(node: Node) {
if (!node.parentNode) return;
node.parentNode.removeChild(node);
}

Loading…
Cancel
Save