Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lpardosixtosMs committed Oct 19, 2023
1 parent 5d0ab55 commit 328bbf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/todomvc/big-dom-generator/src/tree-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const fillSubtreeWeights = (node, expandableItemWeight, nonExpandableItemWeight)
return node.subTreeWeight;
};

// Iterate over the tree in a breadth-first manner until the sum of weights of the subtrees with
// root nodes in the queue is less than the target number of elements we want to have display none.
// Mark the nodes in the queue as display none.
const markDisplayNoneNodes = (node, expandableItemWeight, nonExpandableItemWeight) => {
let currentSubTreesWeights = node.subTreeWeight;
let currentIndex = 0;
Expand Down

0 comments on commit 328bbf1

Please sign in to comment.