benchmarks/scenarios/ember.js
function (path) {
      var state = this.getState();
      path = this.formatURL(path);

      if (!state || state.path !== path) {
        this.pushState(path);
      }
    }
function (path) {
      var state = this.getState();
      path = this.formatURL(path);

      if (!state || state.path !== path) {
        this.pushState(path);
      }
    }
function ( path ) { var state = this . getState ( ) ; path = this . formatURL ( path ) ; if ( ! state || state . path !== path ) { this . pushState ( path ) ; } }
Uses `history.pushState` to update the url without a page reload.
@private
@method setURL
@param path {String}
Uses history . pushState to update the url without a page reload .