rem: function getTBForObject (source) 
add: function getTBForObject (source, create) 
context: function getTBForObject (source){    var name, tb;    switch (source.TYPE)    {        case "IRCChanUser":        case "IRCUser":            name = source.nick;            break;                    case "IRCNetwork":        case "IRCChannel":        case "IRCClient":            name = source.name;            break;    }    var id = "tb[" + name + "]";        if (!(tb = document.getElementById (id)))    {        var views = document.getElementById ("views-tbar");        var tbi = document.createElement ("toolbaritem");        tbi.setAttribute ("class", "activity-button");        tbi.setAttribute ("onclick", "onTBIClick('" + id + "')");                var tb = document.createElement ("titledbutton");        tb.setAttribute ("id", id);        client.viewsArray.push (source);        tb.setAttribute ("viewKey", client.viewsArray.length - 1);        tb.setAttribute ("value", name);        tbi.appendChild (tb);        views.appendChild (tbi);    }    return tb;    }
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/92d0953bec560eca4bc77d648c9a185aad8c507b/test3-static.js/clean/xul/tests/test3-static.js