Commit 6b489696 authored by Mike Bostock's avatar Mike Bostock
Browse files

Style tweak.

parent 58af5194
...@@ -6383,9 +6383,7 @@ ...@@ -6383,9 +6383,7 @@
}); });
d3_layout_hierarchyVisitAfter(root, function(node) { d3_layout_hierarchyVisitAfter(root, function(node) {
var parent; var parent;
if (!node.children) { if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;
node.value = +value.call(hierarchy, node, node.depth) || 0;
}
if (parent = node.parent) parent.value += node.value; if (parent = node.parent) parent.value += node.value;
}); });
} }
......
...@@ -66,9 +66,7 @@ d3.layout.hierarchy = function() { ...@@ -66,9 +66,7 @@ d3.layout.hierarchy = function() {
}); });
d3_layout_hierarchyVisitAfter(root, function(node) { d3_layout_hierarchyVisitAfter(root, function(node) {
var parent; var parent;
if (!node.children) { if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;
node.value = +value.call(hierarchy, node, node.depth) || 0;
}
if (parent = node.parent) parent.value += node.value; if (parent = node.parent) parent.value += node.value;
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment