js/components/carousel.js
function() {
        this.stop();

        // Go to first item
        this.jump(0);

        // Remove clones
        var dir = this._position || 'left';

        this.container.transitionend(function() {
            $(this)
                .addClass('no-transition')
                .css(dir, 0)
                .find('li.is-cloned')
                    .remove();
        });
    }
function() {
        this.stop();

        // Go to first item
        this.jump(0);

        // Remove clones
        var dir = this._position || 'left';

        this.container.transitionend(function() {
            $(this)
                .addClass('no-transition')
                .css(dir, 0)
                .find('li.is-cloned')
                    .remove();
        });
    }
function ( ) { this . stop ( ) ; // Go to first item this . jump ( 0 ) ; // Remove clones var dir = this . _position || 'left' ; this . container . transitionend ( function ( ) { $ ( this ) . addClass ( 'no-transition' ) . css ( dir , 0 ) . find ( 'li.is-cloned' ) . remove ( ) ; } ) ; }
Stop the carousel before destroying.
Stop the carousel before destroying .