public/javascripts/yui/paginator/paginator-debug.js
function (id_base) {
        var p     = this.paginator,
            c     = p.get('nextPageLinkClass'),
            label = p.get('nextPageLinkLabel'),
            last  = p.getTotalPages();

        this.link     = document.createElement('a');
        this.span     = document.createElement('span');

        this.link.id        = id_base + '-next-link';
        this.link.href      = '#';
        this.link.className = c;
        this.link.innerHTML = label;
        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);

        this.span.id        = id_base + '-next-span';
        this.span.className = c;
        this.span.innerHTML = label;

        this.current = p.getCurrentPage() === last ? this.span : this.link;

        return this.current;
    }
function (id_base) {
        var p     = this.paginator,
            c     = p.get('nextPageLinkClass'),
            label = p.get('nextPageLinkLabel'),
            last  = p.getTotalPages();

        this.link     = document.createElement('a');
        this.span     = document.createElement('span');

        this.link.id        = id_base + '-next-link';
        this.link.href      = '#';
        this.link.className = c;
        this.link.innerHTML = label;
        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);

        this.span.id        = id_base + '-next-span';
        this.span.className = c;
        this.span.innerHTML = label;

        this.current = p.getCurrentPage() === last ? this.span : this.link;

        return this.current;
    }
function ( id_base ) { var p = this . paginator , c = p . get ( 'nextPageLinkClass' ) , label = p . get ( 'nextPageLinkLabel' ) , last = p . getTotalPages ( ) ; this . link = document . createElement ( 'a' ) ; this . span = document . createElement ( 'span' ) ; this . link . id = id_base + '-next-link' ; this . link . href = '#' ; this . link . className = c ; this . link . innerHTML = label ; YAHOO . util . Event . on ( this . link , 'click' , this . onClick , this , true ) ; this . span . id = id_base + '-next-span' ; this . span . className = c ; this . span . innerHTML = label ; this . current = p . getCurrentPage ( ) === last ? this . span : this . link ; return this . current ; }
Generate the nodes and return the appropriate node given the current
pagination state.
@method render
@param id_base {string} used to create unique ids for generated nodes
@return {HTMLElement}
Generate the nodes and return the appropriate node given the current pagination state .