public/javascripts/yui/paginator/paginator-debug.js
function (total,silent) {
        if (Paginator.isNumeric(total) && +total >= 0 &&
            +total !== this.get('totalRecords')) {
            if (this.get('updateOnChange') || silent) {
                this.set('totalRecords',total);
            } else {
                this.fireEvent('changeRequest',
                    this.getState({'totalRecords':+total}));
            }
        }
    }
function (total,silent) {
        if (Paginator.isNumeric(total) && +total >= 0 &&
            +total !== this.get('totalRecords')) {
            if (this.get('updateOnChange') || silent) {
                this.set('totalRecords',total);
            } else {
                this.fireEvent('changeRequest',
                    this.getState({'totalRecords':+total}));
            }
        }
    }
function ( total , silent ) { if ( Paginator . isNumeric ( total ) && + total >= 0 && + total !== this . get ( 'totalRecords' ) ) { if ( this . get ( 'updateOnChange' ) || silent ) { this . set ( 'totalRecords' , total ) ; } else { this . fireEvent ( 'changeRequest' , this . getState ( { 'totalRecords' : + total } ) ) ; } } }
Set the total number of records.
@method setTotalRecords
@param total {number} the new total number of records
@param silent {boolean} whether to forcibly avoid firing the changeRequest event
Set the total number of records .