rem: var nodeIndex = 1; while (true) { var node = tree.getNodeByIndex(nodeIndex); if (node == null) break; 
add: for (nodeIndex in tree._nodes) { var node = tree._nodes[nodeIndex]; 
context: function xformsSelectTreeSelect() {    var tree = this.tree;    var control = document.getElementById(tree.id);    control.value = "";    var nodeIndex = 1;    while (true) {        var node = tree.getNodeByIndex(nodeIndex);        if (node == null) break;        if (node.checked) {            if (control.value != "") control.value += " ";            control.value += node.data.value;        }        nodeIndex++;    }    xformsValueChanged(control);}
meta: 7519	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7519/b0464f70e9ce83174a26b99e71ed90fc442d8046/xforms.js/clean/src/examples/web/ops/javascript/xforms.js