docs: 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;
              }