src/components/tabs/tabsPaginationService.js
function getTabOffsets(elements) {
    var i, tab, currentOffset = 0, offsets = [];

    for (i = 0; i < elements.tabs.length; i++) {
      tab = elements.tabs[i];
      offsets.push(currentOffset);
      currentOffset += tab.offsetWidth;
    }

    return offsets;
  }
function getTabOffsets(elements) {
    var i, tab, currentOffset = 0, offsets = [];

    for (i = 0; i < elements.tabs.length; i++) {
      tab = elements.tabs[i];
      offsets.push(currentOffset);
      currentOffset += tab.offsetWidth;
    }

    return offsets;
  }
function getTabOffsets ( elements ) { var i , tab , currentOffset = 0 , offsets = [ ] ; for ( i = 0 ; i < elements . tabs . length ; i ++ ) { tab = elements . tabs [ i ] ; offsets . push ( currentOffset ) ; currentOffset += tab . offsetWidth ; } return offsets ; }
Returns the offsets of all of the tabs based on their widths.

@param elements
@returns {number[]}
Returns the offsets of all of the tabs based on their widths .