add: client.currentObject = null; setCurrentObject(oldView); 
context: function cmdDeleteView(e){    if (!e.view)        e.view = e.sourceObject;        if (e.view.TYPE == "IRCChannel" && e.view.active)        e.view.part();    if (client.viewsArray.length < 2)    {        display(MSG_ERR_LAST_VIEW, MT_ERROR);        return;    }        var tb = getTabForObject(e.view);    if (tb)    {        var i = deleteTab (tb);        if (i != -1)        {            delete e.view.messageCount;            delete e.view.messages;            client.deck.removeChild(e.view.frame);            delete e.view.frame;            if (client.currentObject == e.view)            {                if (i >= client.viewsArray.length)                    i = client.viewsArray.length - 1;                client.currentObject = null;                setCurrentObject(client.viewsArray[i].source);            }        }    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/b15b41115239b16d6993eacd5967157b1e93cdf7/commands.js/clean/xul/content/commands.js