src/aria/utils/History.js
function () {
                stateMemory.discarded = [];
                if (this._isIE7OrLess) {
                    stateMemory.states = [stateMemory.states[this._currentPos]];
                    return;
                }
                var states = stateMemory.states;
                var expirationTime = ((new Date()).getTime() - this.EXPIRATION_TIME * 1000) + "";
                for (var i = 0; i < states.length; i++) {
                    if (states[i].id > expirationTime) {
                        break;
                    }
                }
                states.splice(0, i);
            }
function () {
                stateMemory.discarded = [];
                if (this._isIE7OrLess) {
                    stateMemory.states = [stateMemory.states[this._currentPos]];
                    return;
                }
                var states = stateMemory.states;
                var expirationTime = ((new Date()).getTime() - this.EXPIRATION_TIME * 1000) + "";
                for (var i = 0; i < states.length; i++) {
                    if (states[i].id > expirationTime) {
                        break;
                    }
                }
                states.splice(0, i);
            }
function ( ) { stateMemory . discarded = [ ] ; if ( this . _isIE7OrLess ) { stateMemory . states = [ stateMemory . states [ this . _currentPos ] ] ; return ; } var states = stateMemory . states ; var expirationTime = ( ( new Date ( ) ) . getTime ( ) - this . EXPIRATION_TIME * 1000 ) + "" ; for ( var i = 0 ; i < states . length ; i ++ ) { if ( states [ i ] . id > expirationTime ) { break ; } } states . splice ( 0 , i ) ; }
Remove old states that are present in the state store. States are considered old if they have been stored
more than aria.utils.History.EXPIRATION_TIME seconds before
@private
Remove old states that are present in the state store . States are considered old if they have been stored more than aria . utils . History . EXPIRATION_TIME seconds before