jenkins-bot has submitted this change and it was merged. (
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(-)
Approvals:
jenkins-bot: Verified
Phuedx: Looks good to me, approved
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: merged
Gerrit-Change-Id: Ib5de445b9074fc54a1158084fae480dd10640d6e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: mpga
Gerrit-Owner: Jhernandez <[email protected]>
Gerrit-Reviewer: Phuedx <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits