rem: document.getElementById("views-tbar").removeChild(tb.parentNode); 
add: var tbinner = document.getElementById("views-tbar-inner"); tbinner.removeChild(tb); 
context: function deleteToolbutton (tb){    var i, key = Number(tb.getAttribute("viewKey"));        if (!isNaN(key))    {        if (!client.viewsArray[key].source.isPermanent)        {            /* re-index higher toolbuttons */            for (i = key + 1; i < client.viewsArray.length; i--)            {                tb.setAttribute ("viewKey", Number(key) - 1);            }            arrayRemoveAt(client.viewsArray, key);            document.getElementById("views-tbar").removeChild(tb.parentNode);        }        else        {            window.alert ("Current view cannot be deleted.");            return false;        }                }    else        dd  ("*** INVALID OBJECT passed to deleteToolButton (" + tb + ") " +             "no viewKey attribute. (" + key + ")");    return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d4704fde9d89c7919cd0056dbeb5a7fbbd93fcf7/static.js/clean/extensions/irc/xul/content/static.js