Skip to content

Commit

Permalink
Fixed javascript bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
smicallef committed Jun 28, 2014
1 parent 0b3ecd6 commit 49119fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/js/viz.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ function sf_viz_countLevels(arg, levelsDeep, maxLevels) {
// We've hit a member with children..
if (p == "children" && data[i].children != null) {
levels++;
levels, max = sf_viz_countLevels(data[i].children, levels, max);
arr = sf_viz_countLevels(data[i].children, levels, max);
levels = arr[0];
max = arr[1];
}

if (p == "children" && data[i].children == null) {
Expand Down

0 comments on commit 49119fe

Please sign in to comment.