Updated description of the node's childCount property

The childCount stores the number of direct descendants, not just folders. Also, the number of folders in the entire sub-tree is not relevant
This commit is contained in:
Abhijit Kane
2019-09-18 16:57:23 -07:00
committed by GitHub
parent ac1b1e3ca3
commit deb4d0423d

View File

@@ -15,7 +15,7 @@ function Node (options) {
// stores all direct folder descendants of this node
this.children = {};
// number of folders in the sub-trie of this node
// number of direct descendants (folders / requests) of this node
this.childCount = 0;
this.requests = []; // request will always be an array of objects