FIXME: Document application initialization

Change-Id: Ib5de445b9074fc54a1158084fae480dd10640d6e
This commit is contained in:
joakin 2016-12-02 12:14:02 +01:00
parent e80cc06e03
commit 5dca90a7c3

View file

@ -75,7 +75,16 @@
*/
mw.popups.reducers.rootReducer = Redux.combineReducers( mw.popups.reducers );
// FIXME: Needs doc (or at least one comment line)
/*
* Initialize the application by:
* 1. Creating the state store
* 2. Binding the actions to such store
* 3. Trigger the boot action to bootstrap the system
* 4. When the page content is ready:
* - Process the eligible links for page previews
* - Initialize the renderer
* - Bind hover and click events to the eligible links to trigger actions
*/
mw.requestIdleCallback( function () {
var compose = Redux.compose,
store,