function cacheStateAndFireUrlChange() {
    pendingLocation = null;
    fireStateOrUrlChange();
  }
@name $browser#state

@description
This method is a getter.

Return history.state or null if history.state is undefined.

@returns {object} state