rem: if (0) /*XXX*/ { tbody = source.messages.firstChild; } else { tbody = source.messages; } 
add: { tbody = source.messages.firstChild; } 
context: function addHistory (source, obj){    var tbody;        if (!source.messages)    {        source.messages =            document.createElementNS ("http://www.w3.org/1999/xhtml",                                      "html:table");        source.messages.setAttribute ("class", "msg-table");        source.messages.setAttribute ("view-type", source.TYPE);        if (0) /*XXX*/ {            tbody = document.createElementNS ("http://www.w3.org/1999/xhtml",                                              "html:tbody");            source.messages.appendChild (tbody);        } else {            tbody = source.messages;        }    }    else        if (0) /*XXX*/ {                    tbody = source.messages.firstChild;        } else {            tbody = source.messages;        }    var needScroll = false;    var w = window.frames[0];        if (client.PRINT_DIRECTION == 1)    {        if ((w.document.height - (w.innerHeight + w.pageYOffset)) <            (w.innerHeight / 3))            needScroll = true;        tbody.appendChild (obj);    }    else        tbody.insertBefore (obj, source.messages.firstChild);        if (source.MAX_MESSAGES)    {        if (typeof source.messageCount != "number")            source.messageCount = 1;        else            source.messageCount++;        if (source.messageCount > source.MAX_MESSAGES)            if (client.PRINT_DIRECTION == 1)                tbody.removeChild (tbody.firstChild);            else                tbody.removeChild (tbody.lastChild);    }    if (needScroll && client.currentObject == source)        w.scrollTo (w.pageXOffset, w.document.height);    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0d1a83beabf85d1bbf715013aa931f56c2bfb948/static.js/buggy/extensions/irc/xul/content/static.js