src/components/ebay-tab/index.js
function processStateChange(index) {
    if (index >= 0 && index < this.state.headings.length && index !== this.state.index) {
        this.setState('index', index);
        emitAndFire(this, 'tab-select', { index });
    }
}
function processStateChange(index) {
    if (index >= 0 && index < this.state.headings.length && index !== this.state.index) {
        this.setState('index', index);
        emitAndFire(this, 'tab-select', { index });
    }
}
function processStateChange ( index ) { if ( index >= 0 && index < this . state . headings . length && index !== this . state . index ) { this . setState ( 'index' , index ) ; emitAndFire ( this , 'tab-select' , { index } ) ; } }
Common processing of index change via both UI and API
@param {Number} index
Common processing of index change via both UI and API