flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
11
BACK_BACK/node_modules/d3-transition/src/transition/remove.js
generated
vendored
Executable file
11
BACK_BACK/node_modules/d3-transition/src/transition/remove.js
generated
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
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));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue