UNPKG

@plotly/d3

Version:

A JavaScript visualization library for HTML and SVG.

14 lines (11 loc) 289 B
import "selection"; // TODO remove(selector)? // TODO remove(node)? // TODO remove(function)? d3_selectionPrototype.remove = function() { return this.each(d3_selectionRemove); }; function d3_selectionRemove() { var parent = this.parentNode; if (parent) parent.removeChild(this); }