public/javascripts/yui/carousel/carousel-debug.js
function () {
            var carousel = this,
                cssClass = carousel.CLASSES,
                i=0,
                rows,
                child,
                domItemEl,
                elId,
                node,
                index = carousel.get("firstVisible"),
                parent   = carousel._carouselEl;

            rows = carousel._rows;
            domItemEl = carousel.get("carouselItemEl");

            for (child = parent.firstChild; child; child = child.nextSibling) {
                if (child.nodeType == 1) {
                    node = child.nodeName;
                    if (node.toUpperCase() == domItemEl) {
                        if (child.id) {
                            elId = child.id;
                        } else {
                            elId = Dom.generateId();
                            child.setAttribute("id", elId);
                        }
                        carousel.addItem(child,index);
                        index++;
                    }
                }
            }
        }
function () {
            var carousel = this,
                cssClass = carousel.CLASSES,
                i=0,
                rows,
                child,
                domItemEl,
                elId,
                node,
                index = carousel.get("firstVisible"),
                parent   = carousel._carouselEl;

            rows = carousel._rows;
            domItemEl = carousel.get("carouselItemEl");

            for (child = parent.firstChild; child; child = child.nextSibling) {
                if (child.nodeType == 1) {
                    node = child.nodeName;
                    if (node.toUpperCase() == domItemEl) {
                        if (child.id) {
                            elId = child.id;
                        } else {
                            elId = Dom.generateId();
                            child.setAttribute("id", elId);
                        }
                        carousel.addItem(child,index);
                        index++;
                    }
                }
            }
        }
function ( ) { var carousel = this , cssClass = carousel . CLASSES , i = 0 , rows , child , domItemEl , elId , node , index = carousel . get ( "firstVisible" ) , parent = carousel . _carouselEl ; rows = carousel . _rows ; domItemEl = carousel . get ( "carouselItemEl" ) ; for ( child = parent . firstChild ; child ; child = child . nextSibling ) { if ( child . nodeType == 1 ) { node = child . nodeName ; if ( node . toUpperCase ( ) == domItemEl ) { if ( child . id ) { elId = child . id ; } else { elId = Dom . generateId ( ) ; child . setAttribute ( "id" , elId ) ; } carousel . addItem ( child , index ) ; index ++ ; } } } }
Find the items within the Carousel and add them to the items table.
A Carousel item is identified by elements that matches the carousel
item element tag.

@method parseCarouselItems
@protected
Find the items within the Carousel and add them to the items table . A Carousel item is identified by elements that matches the carousel item element tag .