You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "tandraschko (via GitHub)" <gi...@apache.org> on 2023/02/28 13:10:18 UTC

[GitHub] [myfaces] tandraschko commented on a diff in pull request #539: MYFACES-4575, MYFACES-4567

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: dev-unsubscribe@myfaces.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org