UNPKG
@nepwork/dashboards
Version:
latest (0.0.2)
0.0.2
Dashboards for emergencies and monitoring
github.com/nepwork/admin-ui
nepwork/admin-ui
@nepwork/dashboards
/
hgraph
/
node_modules
/
d3-transition
/
src
/
transition
/
remove.js
12 lines
(10 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
function
removeFunction
(
id
) {
return
function
(
) {
var
parent =
this
.
parentNode
;
for
(
var
i
in
this
.
__transition
)
if
(+i !== id)
return
;
if
(parent) parent.
removeChild
(
this
); }; }
export
default
function
(
) {
return
this
.
on
(
"end.remove"
,
removeFunction
(
this
.
_id
)); }