1: //Recursively sets the nodes and their children to the
2: //specified checked state.
3: function UpdateChildren(nodes, checked)
5: for (i=0; i < nodes.get_count(); i++)
7: var node = nodes.getNode(i);
11: if (node.get_nodes().get_count() > 0)
12: UpdateChildren(node.get_nodes(), checked);
See anything wrong with that? Seriously, stop and look at it before continuing any further. I stared at that code for about an hour before I finally figured out what was wrong.
NOTE: there won’t be an installment of "how to run a software company (into the ground) this week because I am running way behind. Sorry!