public/javascripts/yui/paginator/paginator-debug.js
function (state) {
        if (isObject(state)) {
            // get flux state based on current state with before state as well
            this._state = this.getState({});

            // use just the state props from the input obj
            state = {
                page         : state.page,
                rowsPerPage  : state.rowsPerPage,
                totalRecords : state.totalRecords,
                recordOffset : state.recordOffset
            };

            // calculate recordOffset from page if recordOffset not specified.
            // not using lang.isNumber for support of numeric strings
            if (state.page && state.recordOffset === undefined) {
                state.recordOffset = (state.page - 1) *
                    (state.rowsPerPage || this.get('rowsPerPage'));
            }

            this._batch = true;
            this._pageChanged = false;

            for (var k in state) {
                if (state.hasOwnProperty(k) && this._configs.hasOwnProperty(k)) {
                    this.set(k,state[k]);
                }
            }

            this._batch = false;
            
            if (this._pageChanged) {
                this._pageChanged = false;

                this._firePageChange(this.getState(this._state));
            }
        }
    }
function (state) {
        if (isObject(state)) {
            // get flux state based on current state with before state as well
            this._state = this.getState({});

            // use just the state props from the input obj
            state = {
                page         : state.page,
                rowsPerPage  : state.rowsPerPage,
                totalRecords : state.totalRecords,
                recordOffset : state.recordOffset
            };

            // calculate recordOffset from page if recordOffset not specified.
            // not using lang.isNumber for support of numeric strings
            if (state.page && state.recordOffset === undefined) {
                state.recordOffset = (state.page - 1) *
                    (state.rowsPerPage || this.get('rowsPerPage'));
            }

            this._batch = true;
            this._pageChanged = false;

            for (var k in state) {
                if (state.hasOwnProperty(k) && this._configs.hasOwnProperty(k)) {
                    this.set(k,state[k]);
                }
            }

            this._batch = false;
            
            if (this._pageChanged) {
                this._pageChanged = false;

                this._firePageChange(this.getState(this._state));
            }
        }
    }
function ( state ) { if ( isObject ( state ) ) { // get flux state based on current state with before state as well this . _state = this . getState ( { } ) ; // use just the state props from the input obj state = { page : state . page , rowsPerPage : state . rowsPerPage , totalRecords : state . totalRecords , recordOffset : state . recordOffset } ; // calculate recordOffset from page if recordOffset not specified. // not using lang.isNumber for support of numeric strings if ( state . page && state . recordOffset === undefined ) { state . recordOffset = ( state . page - 1 ) * ( state . rowsPerPage || this . get ( 'rowsPerPage' ) ) ; } this . _batch = true ; this . _pageChanged = false ; for ( var k in state ) { if ( state . hasOwnProperty ( k ) && this . _configs . hasOwnProperty ( k ) ) { this . set ( k , state [ k ] ) ; } } this . _batch = false ; if ( this . _pageChanged ) { this . _pageChanged = false ; this . _firePageChange ( this . getState ( this . _state ) ) ; } } }
Convenience method to facilitate setting state attributes rowsPerPage,
totalRecords, recordOffset in batch.  Also supports calculating
recordOffset from state.page if state.recordOffset is not provided.
Fires only a single pageChange event, if appropriate.
This will not fire a changeRequest event.
@method setState
@param state {Object} Object literal of attribute:value pairs to set
Convenience method to facilitate setting state attributes rowsPerPage totalRecords recordOffset in batch . Also supports calculating recordOffset from state . page if state . recordOffset is not provided . Fires only a single pageChange event if appropriate . This will not fire a changeRequest event .