public/javascripts/yui/carousel/carousel-debug.js
function () {
            var carousel = this,
                pagination = carousel._pagination;
            if(!pagination.el){ return false; }

            var numItems = carousel.get('numItems'),
                numVisible = carousel.get('numVisible'),
                firstVisible = carousel.get('firstVisible')+1,
                currentPage = carousel.get('currentPage')+1,
                numPages = carousel.get('numPages'),
                replacements = {
                    'numVisible' : numVisible,
                    'numPages' : numPages,
                    'numItems' : numItems,
                    'selectedItem' : carousel.get('selectedItem')+1,
                    'currentPage' : currentPage,
                    'firstVisible' : firstVisible,
                    'lastVisible' : carousel.get("lastVisible")+1
                },
                cb = pagination.callback || {},
                scope = cb.scope && cb.obj ? cb.obj : carousel;

            pagination.el.innerHTML = JS.isFunction(cb.fn) ? cb.fn.apply(scope, [pagination.template, replacements]) : YAHOO.lang.substitute(pagination.template, replacements);
        }
function () {
            var carousel = this,
                pagination = carousel._pagination;
            if(!pagination.el){ return false; }

            var numItems = carousel.get('numItems'),
                numVisible = carousel.get('numVisible'),
                firstVisible = carousel.get('firstVisible')+1,
                currentPage = carousel.get('currentPage')+1,
                numPages = carousel.get('numPages'),
                replacements = {
                    'numVisible' : numVisible,
                    'numPages' : numPages,
                    'numItems' : numItems,
                    'selectedItem' : carousel.get('selectedItem')+1,
                    'currentPage' : currentPage,
                    'firstVisible' : firstVisible,
                    'lastVisible' : carousel.get("lastVisible")+1
                },
                cb = pagination.callback || {},
                scope = cb.scope && cb.obj ? cb.obj : carousel;

            pagination.el.innerHTML = JS.isFunction(cb.fn) ? cb.fn.apply(scope, [pagination.template, replacements]) : YAHOO.lang.substitute(pagination.template, replacements);
        }
function ( ) { var carousel = this , pagination = carousel . _pagination ; if ( ! pagination . el ) { return false ; } var numItems = carousel . get ( 'numItems' ) , numVisible = carousel . get ( 'numVisible' ) , firstVisible = carousel . get ( 'firstVisible' ) + 1 , currentPage = carousel . get ( 'currentPage' ) + 1 , numPages = carousel . get ( 'numPages' ) , replacements = { 'numVisible' : numVisible , 'numPages' : numPages , 'numItems' : numItems , 'selectedItem' : carousel . get ( 'selectedItem' ) + 1 , 'currentPage' : currentPage , 'firstVisible' : firstVisible , 'lastVisible' : carousel . get ( "lastVisible" ) + 1 } , cb = pagination . callback || { } , scope = cb . scope && cb . obj ? cb . obj : carousel ; pagination . el . innerHTML = JS . isFunction ( cb . fn ) ? cb . fn . apply ( scope , [ pagination . template , replacements ] ) : YAHOO . lang . substitute ( pagination . template , replacements ) ; }
Update interface's pagination data within a registered template.

@method updatePagination
@public
Update interface s pagination data within a registered template .