rem: dispatch("delete-view", {view: client}); 
add: client.tabs.removeChild(client.tabs.firstChild); updateTabAttributes(); 
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;        }    }    /* check to see whether the URL has been passed via the command line       instead. */    else if ("arguments" in window &&        0 in window.arguments && typeof window.arguments[0] == "string")    {        var url = window.arguments[0]        var urlMatches = url.match(/^ircs?:\/\/\/?(.*)$/)        if (urlMatches)        {            if (urlMatches[1])            {                /* if the url is not "irc://", "irc:///" or an ircs equiv then                   go to it. */                gotoIRCURL(url);                wentSomewhere = true;            }        }        else if (url)        {            /* URL parameter is not blank, but does not not conform to the               irc[s] scheme. */            display(getMsg(MSG_ERR_INVALID_SCHEME, url), MT_ERROR);        }    }    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://"))    {        dispatch("delete-view", {view: client});    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1622/48eaba391b8516ff6bdb5ee09bc9ea30b565a189/static.js/clean/xul/content/static.js