function(path) {
    var state = { path: path };

    get(this, 'history').replaceState(state, null, path);

    // store state if browser doesn't support `history.state`
    if (!supportsHistoryState) {
      this._historyState = state;
    }

    // used for webkit workaround
    this._previousURL = this.getURL();
  }
function(path) {
    var state = { path: path };

    get(this, 'history').replaceState(state, null, path);

    // store state if browser doesn't support `history.state`
    if (!supportsHistoryState) {
      this._historyState = state;
    }

    // used for webkit workaround
    this._previousURL = this.getURL();
  }
function ( path ) { var state = { path : path } ; get ( this , 'history' ) . replaceState ( state , null , path ) ; // store state if browser doesn't support `history.state` if ( ! supportsHistoryState ) { this . _historyState = state ; } // used for webkit workaround this . _previousURL = this . getURL ( ) ; }
Replaces the current state.

@private
@method replaceState
@param path {String}
Replaces the current state .