Sign in
◑
Theme
appsheet-third-party
/
d3
/
6776099c8c95cea146fb2400905ddd777fc31df1
/
.
/
src
/
selection
/
remove.js
blob: 4ef833141a6c249a45f7140d0c4a5879fb55790b [
file
]
import
"selection"
;
// TODO remove(selector)?
// TODO remove(node)?
// TODO remove(function)?
d3_selectionPrototype
.
remove
=
function
()
{
return
this
.
each
(
function
()
{
var
parent
=
this
.
parentNode
;
if
(
parent
)
parent
.
removeChild
(
this
);
});
};