hyperapp icon indicating copy to clipboard operation
hyperapp copied to clipboard

Use node.remove() instead of parent.removeChild(node)

Open skanne opened this issue 5 years ago • 0 comments

Hi Jorge,

not sure if you still want to support olden and not-at-all-golden Internet Explorer. If you're ditching it, then we could as well inch ourselves closer to more modern JS.

Here I am suggesting replacing the pattern parent.removeChild(node) with the simpler node.remove(). According to CanIUse it is safe to assume that by now this method is supported by all non-IE-browsers out there.

Benefit: We can shave off a few more bytes.

Regards, Sven

skanne avatar Feb 28 '21 18:02 skanne