public/javascripts/yui/carousel/carousel-debug.js
function() {
            var carousel  = this,
                currIndex = carousel._firstItem,
                index;

            if (currIndex >= carousel.get("numItems") - 1) {
                if (carousel.get("isCircular")) {
                    index = 0;
                } else {
                    carousel.stopAutoPlay();
                }
            } else {
                index = currIndex + carousel.get("numVisible");
            }

            carousel._selectedItem = carousel._getSelectedItem(index);
            carousel.scrollTo.call(carousel, index);
        }
function() {
            var carousel  = this,
                currIndex = carousel._firstItem,
                index;

            if (currIndex >= carousel.get("numItems") - 1) {
                if (carousel.get("isCircular")) {
                    index = 0;
                } else {
                    carousel.stopAutoPlay();
                }
            } else {
                index = currIndex + carousel.get("numVisible");
            }

            carousel._selectedItem = carousel._getSelectedItem(index);
            carousel.scrollTo.call(carousel, index);
        }
function ( ) { var carousel = this , currIndex = carousel . _firstItem , index ; if ( currIndex >= carousel . get ( "numItems" ) - 1 ) { if ( carousel . get ( "isCircular" ) ) { index = 0 ; } else { carousel . stopAutoPlay ( ) ; } } else { index = currIndex + carousel . get ( "numVisible" ) ; } carousel . _selectedItem = carousel . _getSelectedItem ( index ) ; carousel . scrollTo . call ( carousel , index ) ; }
Automatically scroll the contents of the Carousel.
@method _autoScroll
@protected
Automatically scroll the contents of the Carousel .