function storePreviousState (state, params) {
    if (!state || !state.ignoreState) {
      $state.previous = {
        state: state,
        params: params,
        href: $state.href(state, params)
      };
    }
  }
// only store this state if it shouldn't be ignored
only store this state if it shouldn't be ignored
only store this state if it shouldn ' t be ignored
function storePreviousState (state, params) {
    if (!state || !state.ignoreState) {
      $state.previous = {
        state: state,
        params: params,
        href: $state.href(state, params)
      };
    }
  }
function storePreviousState ( state , params ) { if ( ! state || ! state . ignoreState ) { $state . previous = { state : state , params : params , href : $state . href ( state , params ) } ; } }
only store this state if it shouldn't be ignored
only store this state if it shouldn ' t be ignored