rem: function setTabState (source, what) 
add: function setTabState(source, what, callback) 
context: function setTabState (source, what){    if (typeof source != "object")    {        if (!ASSERT(source in client.viewsArray,                     "INVALID SOURCE passed to setTabState"))            return;        source = client.viewsArray[source].source;    }        var tb = getTabForObject (source, true);    var vk = Number(tb.getAttribute("viewKey"));        if ("currentObject" in client && client.currentObject != source)    {        var state = tb.getAttribute ("state");        if (state == what)        {            /* if the tab state has an equal priority to what we are setting             * then blink it */            if (client.prefs["activityFlashDelay"] > 0)            {                tb.setAttribute ("state", "normal");                setTimeout (setTabState, client.prefs["activityFlashDelay"],                             vk, what);            }        }        else        {            if (state == "normal" || state == "superfluous" ||               (state == "activity" && what == "attention"))            {                /* if the tab state has a lower priority than what we are                 * setting, change it to the new state */                tb.setAttribute ("state", what);                /* we only change the activity list if priority has increased */                if (what == "attention")                   client.activityList[vk] = "!";                else if (what == "activity")                    client.activityList[vk] = "+";                else                {                   /* this is functionally equivalent to "+" for now */                   client.activityList[vk] = "-";                }                updateTitle();            }            else            {                /* the current state of the tab has a higher priority than the                 * new state.                 * blink the new lower state quickly, then back to the old */                if (client.prefs["activityFlashDelay"] > 0)                {                    tb.setAttribute ("state", what);                    setTimeout (setTabState,                                 client.prefs["activityFlashDelay"], vk,                                 state);                }            }        }    }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/ab5d51d260afadac9132b483c4bb3c57bb553754/static.js/clean/xul/content/static.js