public/javascripts/yui/carousel/carousel-debug.js
function (appendTo) {
            var carousel  = this,
                cssClass  = carousel.CLASSES,
                rows = carousel._rows;

            carousel.addClass(cssClass.CAROUSEL);

            if (!carousel._clipEl) {
                carousel._clipEl = carousel._createCarouselClip();
                carousel._clipEl.appendChild(carousel._carouselEl);
            }

            if (appendTo) {
                carousel.appendChild(carousel._clipEl);
                carousel.appendTo(appendTo);
            } else {
                if (!Dom.inDocument(carousel.get("element"))) {
                    YAHOO.log("Nothing to render. The container should be " +
                            "within the document if appendTo is not "       +
                            "specified", "error", WidgetName);
                    return false;
                }
                carousel.appendChild(carousel._clipEl);
            }

            if (rows) {
                Dom.addClass(carousel._clipEl, cssClass.MULTI_ROW);
            }

            if (carousel.get("isVertical")) {
                carousel.addClass(cssClass.VERTICAL);
            } else {
                carousel.addClass(cssClass.HORIZONTAL);
            }

            if (carousel.get("numItems") < 1) {
                YAHOO.log("No items in the Carousel to render", "warn",
                        WidgetName);
                return false;
            }

            carousel._refreshUi();

            return true;
        }
function (appendTo) {
            var carousel  = this,
                cssClass  = carousel.CLASSES,
                rows = carousel._rows;

            carousel.addClass(cssClass.CAROUSEL);

            if (!carousel._clipEl) {
                carousel._clipEl = carousel._createCarouselClip();
                carousel._clipEl.appendChild(carousel._carouselEl);
            }

            if (appendTo) {
                carousel.appendChild(carousel._clipEl);
                carousel.appendTo(appendTo);
            } else {
                if (!Dom.inDocument(carousel.get("element"))) {
                    YAHOO.log("Nothing to render. The container should be " +
                            "within the document if appendTo is not "       +
                            "specified", "error", WidgetName);
                    return false;
                }
                carousel.appendChild(carousel._clipEl);
            }

            if (rows) {
                Dom.addClass(carousel._clipEl, cssClass.MULTI_ROW);
            }

            if (carousel.get("isVertical")) {
                carousel.addClass(cssClass.VERTICAL);
            } else {
                carousel.addClass(cssClass.HORIZONTAL);
            }

            if (carousel.get("numItems") < 1) {
                YAHOO.log("No items in the Carousel to render", "warn",
                        WidgetName);
                return false;
            }

            carousel._refreshUi();

            return true;
        }
function ( appendTo ) { var carousel = this , cssClass = carousel . CLASSES , rows = carousel . _rows ; carousel . addClass ( cssClass . CAROUSEL ) ; if ( ! carousel . _clipEl ) { carousel . _clipEl = carousel . _createCarouselClip ( ) ; carousel . _clipEl . appendChild ( carousel . _carouselEl ) ; } if ( appendTo ) { carousel . appendChild ( carousel . _clipEl ) ; carousel . appendTo ( appendTo ) ; } else { if ( ! Dom . inDocument ( carousel . get ( "element" ) ) ) { YAHOO . log ( "Nothing to render. The container should be " + "within the document if appendTo is not " + "specified" , "error" , WidgetName ) ; return false ; } carousel . appendChild ( carousel . _clipEl ) ; } if ( rows ) { Dom . addClass ( carousel . _clipEl , cssClass . MULTI_ROW ) ; } if ( carousel . get ( "isVertical" ) ) { carousel . addClass ( cssClass . VERTICAL ) ; } else { carousel . addClass ( cssClass . HORIZONTAL ) ; } if ( carousel . get ( "numItems" ) < 1 ) { YAHOO . log ( "No items in the Carousel to render" , "warn" , WidgetName ) ; return false ; } carousel . _refreshUi ( ) ; return true ; }
Render the Carousel.

@method render
@public
@param appendTo {HTMLElement | String} The element to which the
Carousel should be appended prior to rendering.
@return {Boolean} Status of the operation
Render the Carousel .