DevTool

debug/DevTool~ DevTool

Developer tools, used mostly for navigating the page state history.

Constructor

new DevTool(pageManager, stateManager, window, dispatcher, eventBus)

Source:
Initializes the developer tools.
Parameters:
Name Type Description
pageManager PageManager Application page manager.
stateManager PageStateManager Application state manager.
window Window IMA window wrapper.
dispatcher Dispatcher IMA event dispatcher.
eventBus EventBus IMA DOM event bus.

Members

_dispatcher :Dispatcher

Source:
IMA event dispatcher.
Type:
  • Dispatcher

_eventBus :EventBus

Source:
IMA DOM event bus.
Type:
  • EventBus

_pageManager :PageManager

Source:
Application page manager.
Type:
  • PageManager

_stateManager :PageStateManager

Source:
Application state manager.
Type:
  • PageStateManager

_window :Window

Source:
IMA window wrapper.
Type:
  • Window

Methods

clearAppSource()

Source:
Clears the current application state.

getState() → {Object.<string, *>}

Source:
Returns the current page state.
Returns:
The current page state.
Type
Object.<string, *>

init()

Source:
Initializes the developer tools.

setState(statePatch)

Source:
Sets the provided state to the state manager.
Parameters:
Name Type Description
statePatch Object.<string, *> A patch of the current page state.