tandraschko commented on code in PR #539:
URL: https://github.com/apache/myfaces/pull/539#discussion_r1120036365


##########
api/src/client/typescript/faces/api/_api.ts:
##########
@@ -266,6 +266,42 @@ export module myfaces {
         (window?.faces ?? window.jsf).ajax.request(source, event, options);
     }
 
+
+    const onReadyChain: Array<() => void> = [];
+    let readyStateListener = null;
+    // noinspection JSUnusedGlobalSymbols
+    /**
+     * Helper function in the myfaces namespace to handle document ready 
properly for the load case
+     * the ajax case, does not need proper treatment, since it is deferred 
anyway.
+     * Used by command script as helper function!
+     *
+     * @param executionFunc the function to be executed upon ready
+     */
+    export function onOnDomReady(executionFunc: () => void) {

Review Comment:
   onOn?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to