rem:  yuiTree.subscribe("labelClick", ORBEON.xforms.Events.treeLabelClick);  treeDiv.previousValue = treeDiv.value; 
context:     _initTreeDivFromArray: function(treeDiv, yuiTree, treeArray) {        // Populate the tree        var treeRoot = yuiTree.getRoot();        ORBEON.xforms.Init._addToTree(treeDiv, treeArray, treeRoot, 0);        // For select tree, check the node that are selected        if (treeDiv.xformsAllowMultipleSelection) {            var values = treeDiv.value.split(" ");            var nodes = yuiTree.getNodesByProperty();            for (var nodeIndex = 0; nodeIndex < nodes.length; nodeIndex++) {                var node = nodes[nodeIndex];                var currentValue = node.data.value;                for (var valueIndex = 0; valueIndex < values.length; valueIndex++) {                    if (currentValue == values[valueIndex]) {                        node.check()                        break;                    }                }            }        }        // Make selected nodes visible        var values = treeDiv.xformsAllowMultipleSelection ? treeDiv.value.split(" ") : [ treeDiv.value ];        for (nodeIndex in yuiTree._nodes) {            var node = yuiTree._nodes[nodeIndex];            if (xformsArrayContains(values, node.data.value)) {                var nodeParent = node.parent;                while (nodeParent != null) {                    nodeParent.expand();                    nodeParent = nodeParent.parent;                }            }        }        // Register event handler for click on label        yuiTree.subscribe("labelClick", ORBEON.xforms.Events.treeLabelClick);        // Save value in tree        treeDiv.previousValue = treeDiv.value;        yuiTree.draw();    },
meta: 5390	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5390/a82e4040d02d3ea9c2e5e1311eecda9d9a2c7579/xforms.js/clean/src/resources-packaged/ops/javascript/xforms.js