mirror of
https://github.com/google/pebble.git
synced 2025-11-16 12:30:55 -05:00
spelling: when
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -168,7 +168,7 @@ function renderJson(root) {
|
|||||||
// Aggregate the values for internal nodes. This is normally done by the
|
// Aggregate the values for internal nodes. This is normally done by the
|
||||||
// treemap layout, but not here because of our custom implementation.
|
// treemap layout, but not here because of our custom implementation.
|
||||||
// We also take a snapshot of the original children (_children) to avoid
|
// We also take a snapshot of the original children (_children) to avoid
|
||||||
// the children being overwritten when when layout is computed.
|
// the children being overwritten when layout is computed.
|
||||||
function accumulate(d) {
|
function accumulate(d) {
|
||||||
return (d._children = d.children)
|
return (d._children = d.children)
|
||||||
? d.value = d.children.reduce(function(p, v) { return p + accumulate(v); }, 0)
|
? d.value = d.children.reduce(function(p, v) { return p + accumulate(v); }, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user