code: function (id) {
                  if (html5History) {
                      id = null;
                  } else {
                      id = id || this._getIdFromHash();
                  }
                  var states = stateMemory.states;
                  var url = window.location.href.replace(/#.*$/, "");
                  var returnValue = null, mostRecent = "0", state;
                  for (var i = 0, length = states.length; i < length; i++) {
                      state = states[i];
                      if (state.id === id) {
                          return {
                              position : i,
                              state : state
                          };
                      }
                      if (state.url === url && state.id > mostRecent) {
                          returnValue = {
                              position : i,
                              state : state
                          };
                          mostRecent = state.id;
                      }
                  }
                  return returnValue;
              }
docs: Retrieve the state from the store.
  @param {String} id Id of the state
  @return {Object}
  
  <pre>
  {
  position : {Number} position in the store,
  state : {
  id : {String} id of the state,
  title : {String} title of the page,
  url : {String} only for initial states,
  state : {Object} Saved data for the state
  }
  }
  </pre>
  
  @private