core/local/reactive/stateManager

core/local/reactive/stateManager

new core/local/reactive/stateManager()

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Reactive simple state manager.

The state manager contains the state data, trigger update events and can lock and unlock the state data.

This file contains the three main elements of the state manager:

  • State manager: the public class to alter the state, dispatch events and process update messages.
  • Proxy handler: a private class to keep track of the state object changes.
  • StateMap class: a private class extending Map class that triggers event when a state list is modifed.