function activateTab(tab) {
        var result = false;

        if (tab) {
          var index = this.tabs.indexOf(tab);

          if (!tab.disabled && index > -1) {
            result = true;
            this.currentTab = index;
          }
        }

        if (!result) {
          // Couldn't set tab, so ensure v-model is set to this.currentTab

          /* istanbul ignore next: should rarely happen */
          this.$emit('input', this.currentTab);
        }

        return result;
      }
// Also accessed by b-tab
Also accessed by b-tab
Also accessed by b - tab
function activateTab(tab) {
        var result = false;
        if (tab) {
          var index = this.tabs.indexOf(tab);
          if (!tab.disabled && index > -1) {
            result = true;
            this.currentTab = index;
          }
        }
        if (!result) {
          this.$emit('input', this.currentTab);
        }
        return result;
      }
function activateTab ( tab ) { var result = false ; if ( tab ) { var index = this . tabs . indexOf ( tab ) ; if ( ! tab . disabled && index > - 1 ) { result = true ; this . currentTab = index ; } } if ( ! result ) { this . $emit ( 'input' , this . currentTab ) ; } return result ; }
Also accessed by b-tab
Also accessed by b - tab
// Couldn't set tab, so ensure v-model is set to this.currentTab /* istanbul ignore next: should rarely happen */