Skip to content

Commit

Permalink
Fix transition.remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 12, 2016
1 parent 45c28c4 commit 4d6f3a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "d3-transition",
"version": "0.1.0",
"version": "0.1.1",
"description": "Animated transitions for D3 selections.",
"keywords": [
"d3",
Expand Down
2 changes: 1 addition & 1 deletion src/transition/remove.js
@@ -1,7 +1,7 @@
function removeFunction(key) {
return function() {
var parent = this.parentNode;
if (parent && !this[key]) parent.removeChild(this);
if (parent && !this[key].pending.length) parent.removeChild(this);
};
}

Expand Down

0 comments on commit 4d6f3a6

Please sign in to comment.