rem: if (tb) tb.setAttribute ("state", "normal");  
context: function setCurrentObject (obj){    if (!obj.messages)    {        dd ("** INVALID OBJECT passed to setCurrentObject **");        return;    }    if (client.currentObject == obj)        return;            var tb, userList;    if (client.currentObject)        tb = getTBForObject(client.currentObject);        if (tb)        tb.setAttribute ("state", "normal");    if (client.output.firstChild)        client.output.removeChild (client.output.firstChild);    client.output.appendChild (obj.messages);    /* Unselect currently selected users. */    userList = document.getElementById("user-list");    if (userList)         /* Remove curently selection items before this tree gets rerooted, because it seems to         remember the selections for eternity if not. */        userList.clearItemSelection ();        else        dd ("setCurrentObject: could not find element with ID='user-list'");            if (obj.TYPE == "IRCChannel")        client.rdf.setTreeRoot ("user-list", obj.getGraphResource());    else        client.rdf.setTreeRoot ("user-list", client.rdf.resNullChan);    client.currentObject = obj;    tb = getTBForObject(obj);    if (tb)        tb.setAttribute ("state", "current");    var vk = Number(tb.getAttribute("viewKey"));    delete client.activityList[vk];    updateNetwork();    updateChannel();    updateTitle ();    if (client.PRINT_DIRECTION == 1)        window.frames[0].scrollTo(0, window.frames[0].document.height);    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ee3e25cd866563b5083f4eb42f44f9b25afaeeda/static.js/clean/extensions/irc/xul/content/static.js