Skip to content

Commit

Permalink
Style tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed May 19, 2014
1 parent 58af519 commit 6b48969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions d3.js
Expand Up @@ -6383,9 +6383,7 @@
});
d3_layout_hierarchyVisitAfter(root, function(node) {
var parent;
if (!node.children) {
node.value = +value.call(hierarchy, node, node.depth) || 0;
}
if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;
if (parent = node.parent) parent.value += node.value;
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/layout/hierarchy.js
Expand Up @@ -66,9 +66,7 @@ d3.layout.hierarchy = function() {
});
d3_layout_hierarchyVisitAfter(root, function(node) {
var parent;
if (!node.children) {
node.value = +value.call(hierarchy, node, node.depth) || 0;
}
if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;
if (parent = node.parent) parent.value += node.value;
});
}
Expand Down

0 comments on commit 6b48969

Please sign in to comment.