public/javascripts/yui/carousel/carousel-debug.js
function () {
            var carousel = this,
                i        = carousel.get("firstVisible"),
                n        = i + carousel.get("numVisible"),
                r        = [];

            while (i < n) {
                r.push(carousel.getElementForItem(i));
                i++;
            }

            return r;
        }
function () {
            var carousel = this,
                i        = carousel.get("firstVisible"),
                n        = i + carousel.get("numVisible"),
                r        = [];

            while (i < n) {
                r.push(carousel.getElementForItem(i));
                i++;
            }

            return r;
        }
function ( ) { var carousel = this , i = carousel . get ( "firstVisible" ) , n = i + carousel . get ( "numVisible" ) , r = [ ] ; while ( i < n ) { r . push ( carousel . getElementForItem ( i ) ) ; i ++ ; } return r ; }
Return all visible items as an array.

@method getVisibleItems
@return {Array} The array of visible items
@public
Return all visible items as an array .