public/javascripts/yui/tabview/tabview-debug.js
function(tab) {
            var tabCount = this.get('tabs').length,
                index = this.getTabIndex(tab);

            if ( tab === this.get(ACTIVE_TAB) ) { 
                if (tabCount > 1) { // select another tab
                    if (index + 1 === tabCount) { // if last, activate previous
                        this.set(ACTIVE_INDEX, index - 1);
                    } else { // activate next tab
                        this.set(ACTIVE_INDEX, index + 1);
                    }
                } else { // no more tabs
                    this.set(ACTIVE_TAB, null);
                }
            }
            
            this._removeTabEvents(tab);
            this._tabParent.removeChild( tab.get(ELEMENT) );
            this._contentParent.removeChild( tab.get(CONTENT_EL) );
            this._configs.tabs.value.splice(index, 1);

            tab.fireEvent('remove', { type: 'remove', tabview: this });
        }
function(tab) {
            var tabCount = this.get('tabs').length,
                index = this.getTabIndex(tab);

            if ( tab === this.get(ACTIVE_TAB) ) { 
                if (tabCount > 1) { // select another tab
                    if (index + 1 === tabCount) { // if last, activate previous
                        this.set(ACTIVE_INDEX, index - 1);
                    } else { // activate next tab
                        this.set(ACTIVE_INDEX, index + 1);
                    }
                } else { // no more tabs
                    this.set(ACTIVE_TAB, null);
                }
            }
            
            this._removeTabEvents(tab);
            this._tabParent.removeChild( tab.get(ELEMENT) );
            this._contentParent.removeChild( tab.get(CONTENT_EL) );
            this._configs.tabs.value.splice(index, 1);

            tab.fireEvent('remove', { type: 'remove', tabview: this });
        }
function ( tab ) { var tabCount = this . get ( 'tabs' ) . length , index = this . getTabIndex ( tab ) ; if ( tab === this . get ( ACTIVE_TAB ) ) { if ( tabCount > 1 ) { // select another tab if ( index + 1 === tabCount ) { // if last, activate previous this . set ( ACTIVE_INDEX , index - 1 ) ; } else { // activate next tab this . set ( ACTIVE_INDEX , index + 1 ) ; } } else { // no more tabs this . set ( ACTIVE_TAB , null ) ; } } this . _removeTabEvents ( tab ) ; this . _tabParent . removeChild ( tab . get ( ELEMENT ) ) ; this . _contentParent . removeChild ( tab . get ( CONTENT_EL ) ) ; this . _configs . tabs . value . splice ( index , 1 ) ; tab . fireEvent ( 'remove' , { type : 'remove' , tabview : this } ) ; }
Removes the specified Tab from the TabView.
@method removeTab
@param {YAHOO.widget.Tab} item The Tab instance to be removed.
@return void
Removes the specified Tab from the TabView .