UNPKG

pop

Version:

Pop is a [Hyperapp](https://github.com/hyperapp/hyperapp) / [Ultradom](https://github.com/ultradom/ultradom) spin-off project — yet another micro-framework for creating graphical user interfaces. This is not the final title, but let's go with that for now

15 lines (12 loc) 302 B
import { removeChildren } from "./removeChildren" export function removeElement(parent, element, node) { function done() { parent.removeChild(removeChildren(element, node)) } var cb = node.attributes && node.attributes.onremove if (cb) { cb(element, done) } else { done() } }