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