public/javascripts/yui/paginator/paginator-debug.js
function (e) {
        if (e && e.prevValue === e.newValue) {
            return;
        }

        var last = this.paginator.getTotalPages(),
            par  = this.current ? this.current.parentNode : null;

        if (this.paginator.getCurrentPage() !== last) {
            if (par && this.current === this.span) {
                par.replaceChild(this.link,this.current);
                this.current = this.link;
            }
        } else if (this.current === this.link) {
            if (par) {
                par.replaceChild(this.span,this.current);
                this.current = this.span;
            }
        }
    }
function (e) {
        if (e && e.prevValue === e.newValue) {
            return;
        }

        var last = this.paginator.getTotalPages(),
            par  = this.current ? this.current.parentNode : null;

        if (this.paginator.getCurrentPage() !== last) {
            if (par && this.current === this.span) {
                par.replaceChild(this.link,this.current);
                this.current = this.link;
            }
        } else if (this.current === this.link) {
            if (par) {
                par.replaceChild(this.span,this.current);
                this.current = this.span;
            }
        }
    }
function ( e ) { if ( e && e . prevValue === e . newValue ) { return ; } var last = this . paginator . getTotalPages ( ) , par = this . current ? this . current . parentNode : null ; if ( this . paginator . getCurrentPage ( ) !== last ) { if ( par && this . current === this . span ) { par . replaceChild ( this . link , this . current ) ; this . current = this . link ; } } else if ( this . current === this . link ) { if ( par ) { par . replaceChild ( this . span , this . current ) ; this . current = this . span ; } } }
Swap the link and span nodes if appropriate.
@method update
@param e {CustomEvent} The calling change event
Swap the link and span nodes if appropriate .