Merge pull request #2616 from EmilTholin/insertBefore_null_default_anchor

Make null the default anchor of insertBefore
pull/2670/head
Rich Harris 5 years ago committed by GitHub
commit ab711ac89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@ export function append(target, node) {
}
export function insert(target, node, anchor) {
target.insertBefore(node, anchor);
target.insertBefore(node, anchor || null);
}
export function detach(node) {

Loading…
Cancel
Save