js/components/carousel.js
function(index) {
        this.items
            .removeClass('is-active')
            .aria('hidden', true)
            .slice(index, index + this.options.itemsToShow)
                .addClass('is-active')
                .aria('hidden', false);
    }
function(index) {
        this.items
            .removeClass('is-active')
            .aria('hidden', true)
            .slice(index, index + this.options.itemsToShow)
                .addClass('is-active')
                .aria('hidden', false);
    }
function ( index ) { this . items . removeClass ( 'is-active' ) . aria ( 'hidden' , true ) . slice ( index , index + this . options . itemsToShow ) . addClass ( 'is-active' ) . aria ( 'hidden' , false ) ; }
Update the active state for the items while taking into account cloned elements.

@param {Number} index
@private
Update the active state for the items while taking into account cloned elements .