public/javascripts/yui/paginator/paginator-debug.js
function (page,silent) {
        if (this.hasPage(page) && page !== this.getCurrentPage()) {
            if (this.get('updateOnChange') || silent) {
                this.set('recordOffset', (page - 1) * this.get('rowsPerPage'));
            } else {
                this.fireEvent('changeRequest',this.getState({'page':page}));
            }
        }
    }
function (page,silent) {
        if (this.hasPage(page) && page !== this.getCurrentPage()) {
            if (this.get('updateOnChange') || silent) {
                this.set('recordOffset', (page - 1) * this.get('rowsPerPage'));
            } else {
                this.fireEvent('changeRequest',this.getState({'page':page}));
            }
        }
    }
function ( page , silent ) { if ( this . hasPage ( page ) && page !== this . getCurrentPage ( ) ) { if ( this . get ( 'updateOnChange' ) || silent ) { this . set ( 'recordOffset' , ( page - 1 ) * this . get ( 'rowsPerPage' ) ) ; } else { this . fireEvent ( 'changeRequest' , this . getState ( { 'page' : page } ) ) ; } } }
Set the current page to the provided page number if possible.
@method setPage
@param newPage {number} the new page number
@param silent {boolean} whether to forcibly avoid firing the
changeRequest event
Set the current page to the provided page number if possible .