Jhernandez has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/324882

Change subject: FIXME: Document application initialization
......................................................................

FIXME: Document application initialization

Change-Id: Ib5de445b9074fc54a1158084fae480dd10640d6e
---
M resources/ext.popups/boot.js
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups 
refs/changes/82/324882/1

diff --git a/resources/ext.popups/boot.js b/resources/ext.popups/boot.js
index e9a2f81..f017aa9 100644
--- a/resources/ext.popups/boot.js
+++ b/resources/ext.popups/boot.js
@@ -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,

-- 
To view, visit https://gerrit.wikimedia.org/r/324882
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5de445b9074fc54a1158084fae480dd10640d6e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: mpga
Gerrit-Owner: Jhernandez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to