Class: PageStateManagerImpl

PageStateManagerImpl

The implementation of the PageStateManager interface.


new PageStateManagerImpl()

Initializes the page state manager.

Members


_cursor :number

Type:
  • number

_states :Array.<Object.<string, *>>

Type:
  • Array.<Object.<string, *>>

<nullable> onChange :function

Type:
  • function

Methods


_callOnChangeCallback(newState)

Call registered callback function on (@codelink onChange) with newState.

Parameters:
Name Type Description
newState Object.<string, *>

_eraseExcessHistory()

Erase the oldest state from storage only if it exceed max defined size of history.


_pushToHistory(newState)

Push new state to history storage.

Parameters:
Name Type Description
newState Object.<string, *>

clear()


getAllStates()


getState()


setState()