rem: userList.treeBoxObject.selection.clearSelection (); 
add: userList.treeBoxObject.selection.select(-1); 
context: function setCurrentObject (obj){    function clearList()    {        client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser,                             client.rdf.resNullUser, true);    };            if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **"))        return;    if ("currentObject" in client && client.currentObject == obj)        return;            var tb, userList;    if ("currentObject" in client && client.currentObject)    {        tb = getTabForObject(client.currentObject);    }    if (tb)    {        tb.selected = false;        tb.setAttribute ("state", "normal");    }        /* Unselect currently selected users. */    userList = document.getElementById("user-list");    /* If the splitter's collapsed, the userlist *isn't* visible, but we'll not     * get told when it becomes visible, so update it even if it's only the      * splitter visible. */    if (isVisible("user-list-box") || isVisible("main-splitter"))    {        /* Remove currently selected items before this tree gets rerooted,         * because it seems to remember the selections for eternity if not. */        if (userList.treeBoxObject.selection)            userList.treeBoxObject.selection.clearSelection ();        if (obj.TYPE == "IRCChannel")        {            client.rdf.setTreeRoot("user-list", obj.getGraphResource());            updateUserList();        }        else        {            var rdf = client.rdf;            rdf.setTreeRoot("user-list", rdf.resNullChan);            rdf.Assert (rdf.resNullChan, rdf.resChanUser, rdf.resNullUser,                        true);            setTimeout(clearList, 100);        }    }        client.currentObject = obj;    tb = getTabForObject(obj, true);    if (tb)    {        tb.selected = true;        tb.setAttribute ("state", "current");    }        var vk = Number(tb.getAttribute("viewKey"));    delete client.activityList[vk];    client.deck.selectedIndex = vk;    updateTitle();    if (client.PRINT_DIRECTION == 1)        scrollDown(obj.frame, false);        client.input.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a7d0ded3b6b8c1054117d1d9a9e343bf11ee9771/static.js/clean/extensions/irc/xul/content/static.js