add: if ((e.thing == "userlist") && (sourceObject.TYPE == "IRCChannel")) { var rv = getSelectedNicknames(document.getElementById("user-list")); sourceObject.userlistSelection = rv; } 
context: function cmdToggleUI(e){    var ids = new Array();    switch (e.thing)    {        case "tabstrip":            ids = ["view-tabs"];            break;        case "userlist":            ids = ["main-splitter", "user-list-box"];            break;        case "header":            client.currentObject.prefs["displayHeader"] =                !client.currentObject.prefs["displayHeader"];            return;        case "status":            ids = ["status-bar"];            break;        default:            ASSERT (0,"Unknown element ``" + e.thing +                    "'' passed to onToggleVisibility.");            return;    }    var newState;    var elem = document.getElementById(ids[0]);    var sourceObject = e.sourceObject;    if (elem.getAttribute("collapsed") == "true")    {        if (e.thing == "userlist")        {            if (sourceObject.TYPE == "IRCChannel")            {                client.rdf.setTreeRoot("user-list",                                       sourceObject.getGraphResource());            }            else            {                client.rdf.setTreeRoot("user-list", client.rdf.resNullChan);            }        }        newState = "false";    }    else    {        newState = "true";    }    for (var i in ids)    {        elem = document.getElementById(ids[i]);        elem.setAttribute ("collapsed", newState);    }    updateTitle();    dispatch("focus-input");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b7e3890899043c50cc9416261ebb60084772c5c7/commands.js/clean/extensions/irc/xul/content/commands.js