rem: var tb = getTabForObject(client); deleteTab(tb); client.deck.removeChild(client.frame); client.deck.selectedIndex = 0; 
add: dispatch("delete-view", {view: client}); 
context: function processStartupURLs(){    var wentSomewhere = false;    if ("arguments" in window &&        0 in window.arguments && typeof window.arguments[0] == "object" &&        "url" in window.arguments[0])    {        var url = window.arguments[0].url;        if (url.search(/^ircs?:\/?\/?\/?$/i) == -1)        {            /* if the url is not irc: irc:/, irc://, or ircs equiv then go to it. */            gotoIRCURL(url);            wentSomewhere = true;        }    }    if (!wentSomewhere)    {        /* if we had nowhere else to go, connect to any default urls */        var ary = client.prefs["initialURLs"];        for (var i = 0; i < ary.length; ++i)        {            if (ary[i] && ary[i] == "irc:///")            {                // Clean out "default network" entries, which we don't                // support any more; replace with the harmless irc:// URL.                ary[i] = "irc://";                client.prefs["initialURLs"].update();            }            if (ary[i] && ary[i] != "irc://")                gotoIRCURL(ary[i]);        }    }    if (client.viewsArray.length > 1 && !isStartupURL("irc://"))    {        var tb = getTabForObject(client);        deleteTab(tb);        client.deck.removeChild(client.frame);        client.deck.selectedIndex = 0;    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/778d1ba7ba02054c6bfe47e8699fa187c2c0baea/static.js/clean/extensions/irc/xul/content/static.js