public/javascripts/yui/carousel/carousel-debug.js
function (tpl, pos, cb) {
            var carousel = this;

            carousel._pagination.template = tpl;
            carousel._pagination.callback = cb || {};

            if(!carousel._pagination.el){
                carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION});

                if(pos == "before"){
                    carousel._navEl.insertBefore(carousel._pagination.el, carousel._navEl.firstChild);
                } else {
                    carousel._navEl.appendChild(carousel._pagination.el);
                }

                carousel.on('itemSelected', carousel.updatePagination);
                carousel.on('pageChange', carousel.updatePagination);
            }

            carousel.updatePagination();
        }
function (tpl, pos, cb) {
            var carousel = this;

            carousel._pagination.template = tpl;
            carousel._pagination.callback = cb || {};

            if(!carousel._pagination.el){
                carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION});

                if(pos == "before"){
                    carousel._navEl.insertBefore(carousel._pagination.el, carousel._navEl.firstChild);
                } else {
                    carousel._navEl.appendChild(carousel._pagination.el);
                }

                carousel.on('itemSelected', carousel.updatePagination);
                carousel.on('pageChange', carousel.updatePagination);
            }

            carousel.updatePagination();
        }
function ( tpl , pos , cb ) { var carousel = this ; carousel . _pagination . template = tpl ; carousel . _pagination . callback = cb || { } ; if ( ! carousel . _pagination . el ) { carousel . _pagination . el = createElement ( 'DIV' , { className : carousel . CLASSES . PAGINATION } ) ; if ( pos == "before" ) { carousel . _navEl . insertBefore ( carousel . _pagination . el , carousel . _navEl . firstChild ) ; } else { carousel . _navEl . appendChild ( carousel . _pagination . el ) ; } carousel . on ( 'itemSelected' , carousel . updatePagination ) ; carousel . on ( 'pageChange' , carousel . updatePagination ) ; } carousel . updatePagination ( ) ; }
Register carousels pagination template, append to interface, and populate.

@method registerPagination
@param template {String} Pagination template as passed to lang.substitute
@public
Register carousels pagination template append to interface and populate .