public/javascripts/yui/carousel/carousel-debug.js
function (parent) {
            var carousel = this, child, cssClass, domEl, found, node;

            cssClass  = carousel.CLASSES;
            domEl     = carousel.get("carouselEl");
            found     = false;

            for (child = parent.firstChild; child; child = child.nextSibling) {
                if (child.nodeType == 1) {
                    node = child.nodeName;
                    if (node.toUpperCase() == domEl) {
                        carousel._carouselEl = child;
                        Dom.addClass(carousel._carouselEl,
                                     carousel.CLASSES.CAROUSEL_EL);
                        YAHOO.log("Found Carousel - " + node +
                                (child.id ? " (#" + child.id + ")" : ""),
                                WidgetName);
                        found = true;
                    }
                }
            }

            return found;
        }
function (parent) {
            var carousel = this, child, cssClass, domEl, found, node;

            cssClass  = carousel.CLASSES;
            domEl     = carousel.get("carouselEl");
            found     = false;

            for (child = parent.firstChild; child; child = child.nextSibling) {
                if (child.nodeType == 1) {
                    node = child.nodeName;
                    if (node.toUpperCase() == domEl) {
                        carousel._carouselEl = child;
                        Dom.addClass(carousel._carouselEl,
                                     carousel.CLASSES.CAROUSEL_EL);
                        YAHOO.log("Found Carousel - " + node +
                                (child.id ? " (#" + child.id + ")" : ""),
                                WidgetName);
                        found = true;
                    }
                }
            }

            return found;
        }
function ( parent ) { var carousel = this , child , cssClass , domEl , found , node ; cssClass = carousel . CLASSES ; domEl = carousel . get ( "carouselEl" ) ; found = false ; for ( child = parent . firstChild ; child ; child = child . nextSibling ) { if ( child . nodeType == 1 ) { node = child . nodeName ; if ( node . toUpperCase ( ) == domEl ) { carousel . _carouselEl = child ; Dom . addClass ( carousel . _carouselEl , carousel . CLASSES . CAROUSEL_EL ) ; YAHOO . log ( "Found Carousel - " + node + ( child . id ? " (#" + child . id + ")" : "" ) , WidgetName ) ; found = true ; } } } return found ; }
Find the Carousel within a container. The Carousel is identified by
the first element that matches the carousel element tag or the
element that has the Carousel class.

@method parseCarousel
@param parent {HTMLElement} The parent element to look under
@return {Boolean} True if Carousel is found, false otherwise
@protected
Find the Carousel within a container . The Carousel is identified by the first element that matches the carousel element tag or the element that has the Carousel class .