www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 244069816a8fee98668c70b65b84d327cb0b07e1
parent 9be0bfa9a71fe14b30825101a313b1013b7f1b61
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat,  1 Jan 2011 16:42:20 -0500

Since loadComplete calls Config and Startup, which require the page body to be nodified, wait for the onload handler to call loadComplete

Diffstat:
Munpacked/jax/output/HTML-CSS/jax.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js @@ -2103,8 +2103,13 @@ // but can't call loadComplete within the callback for "mml Jax Ready" // (it would call HTMLCSS's Require routine, asking for the mml jax again) // so wait until after the mml jax has finished processing. + // + // We also need to wait for the onload handler to run, since the loadComplete + // will call Config and Startup, which need to modify the body. // - setTimeout(MathJax.Callback(["loadComplete",HTMLCSS,"jax.js"]),0); + MathJax.Hub.Register.StartupHook("onLoad",function () { + setTimeout(MathJax.Callback(["loadComplete",HTMLCSS,"jax.js"]),0); + }); }); //