rem: if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); } 
add: var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); 
context: function s2v_createframe (sourceTab, index, raiseFlag){    if (!ASSERT(this.deck, "we're deckless"))        return null;    if (this.tabs.childNodes.length == 1)    {        var bloke = getChildById (this.tabs, "source2-bloke");        if (bloke)            this.tabs.removeChild(bloke);    }    var document = this.currentContent.ownerDocument;    var tab = document.createElement ("tab");    tab.setAttribute ("class", "source2-tab");    tab.setAttribute ("context", "context:source2");    tab.setAttribute ("crop", "center");    tab.setAttribute ("flex", "1");    tab.setAttribute ("label", sourceTab.sourceText.shortName);    if (index < this.tabs.childNodes.length)        this.tabs.insertBefore (tab, this.tabs.childNodes[index]);    else        this.tabs.appendChild (tab);    sourceTab.tab = tab;    var tabPanel = document.createElement("tabpanel");    tabPanel.setAttribute ("flex", "1");    var iframe = document.createElement("browser");    iframe.setAttribute ("flex", "1");    iframe.setAttribute ("context", "context:source2");    iframe.setAttribute ("type", "content");    iframe.setAttribute ("onclick",                         "console.views.source2.onSourceClick(event);");    iframe.setAttribute ("targetSrc", sourceTab.sourceText.jsdURL);    if (raiseFlag)        iframe.setAttribute ("raiseOnSync", "true");    tabPanel.appendChild (iframe);    if (this.deck.childNodes.length > index)        this.deck.insertBefore (tabPanel, this.deck.childNodes[index]);    else        this.deck.appendChild(tabPanel);    sourceTab.iframe = iframe;    this.syncOutputFrame (iframe);    return iframe;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b0b8cec04bd582c27a41817979fe87561132d01d/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js