rem: client.currentObject = null; setCurrentObject (client.viewsArray[i].source); 
add: if (client.currentObject == e.view) { if (i >= client.viewsArray.length) i = client.viewsArray.length - 1; client.currentObject = null; setCurrentObject (client.viewsArray[i].source); } 
context: function cmdHideView(e){    if (!e.view)        e.view = e.sourceObject;    var tb = getTabForObject(e.view);        if (tb)    {        var i = deleteTab (tb);        if (i != -1)        {            client.deck.removeChild(e.view.frame);            delete e.view.frame;            if (i >= client.viewsArray.length)                i = client.viewsArray.length - 1;            client.currentObject = null;            setCurrentObject (client.viewsArray[i].source);        }    }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/e514d5f9baaf43550c1338ff6e11af572ed7f42f/commands.js/clean/xul/content/commands.js