public/javascripts/yui/carousel/carousel-debug.js
function syncUi(o) {
        var carousel = this;

        if (!JS.isObject(o)) {
            return;
        }

        switch (o.ev) {
        case itemAddedEvent:
            carousel._syncUiForItemAdd(o);
            break;
        case itemRemovedEvent:
            carousel._syncUiForItemRemove(o);
            break;
        case itemReplacedEvent:
            carousel._syncUiForItemReplace(o);
            break;
        case loadItemsEvent:
            carousel._syncUiForLazyLoading(o);
            break;
        }

        carousel.fireEvent(uiUpdateEvent);
    }
function syncUi(o) {
        var carousel = this;

        if (!JS.isObject(o)) {
            return;
        }

        switch (o.ev) {
        case itemAddedEvent:
            carousel._syncUiForItemAdd(o);
            break;
        case itemRemovedEvent:
            carousel._syncUiForItemRemove(o);
            break;
        case itemReplacedEvent:
            carousel._syncUiForItemReplace(o);
            break;
        case loadItemsEvent:
            carousel._syncUiForLazyLoading(o);
            break;
        }

        carousel.fireEvent(uiUpdateEvent);
    }
function syncUi ( o ) { var carousel = this ; if ( ! JS . isObject ( o ) ) { return ; } switch ( o . ev ) { case itemAddedEvent : carousel . _syncUiForItemAdd ( o ) ; break ; case itemRemovedEvent : carousel . _syncUiForItemRemove ( o ) ; break ; case itemReplacedEvent : carousel . _syncUiForItemReplace ( o ) ; break ; case loadItemsEvent : carousel . _syncUiForLazyLoading ( o ) ; break ; } carousel . fireEvent ( uiUpdateEvent ) ; }
Handle UI update.
Call the appropriate methods on events fired when an item is added, or
removed for synchronizing the DOM.

@method syncUi
@param {Object} o The item that needs to be added or removed
@private
Handle UI update . Call the appropriate methods on events fired when an item is added or removed for synchronizing the DOM .