rem:  /* Grab a reference to the tree element with ID = user-list . See chatzilla.xul */ 
context: function my_getselectedusers () {    /* Grab a reference to the tree element with ID = user-list . See chatzilla.xul */    var tree = document.getElementById("user-list");    var cell; /* reference to each selected cell of the tree object */    var rv_ary = new Array; /* return value arrray for CIRCChanUser objects */    var rangeCount = tree.view.selection.getRangeCount();    for (var i = 0; i < rangeCount; ++i)    {        var start = {}, end = {};        tree.view.selection.getRangeAt(i, start, end);        for (var k = start.value; k <= end.value; ++k)        {            var item = tree.contentView.getItemAtIndex(k);            /* First, set the reference to the XUL element. */            cell = item.firstChild.childNodes[2];                        /* Now, create an instance of CIRCChaneUser by passing the text          *  of the cell to the getUser function of this CIRCChannel instance.          */            rv_ary[i] = this.getUser( cell.getAttribute("label") );        }    }    /*      *  USAGE NOTE: If the return value is non-null, the caller     *  can assume the array is valid, and NOT      *  need to check the length, and vice versa.     */    return rv_ary.length > 0 ? rv_ary : null;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b78133bb8ec2475acd4aba9a7c677591dd0262fe/static.js/clean/extensions/irc/xul/content/static.js