Tie checking for menu settings to Cookie event so that it occurs after the cookie is read

This commit is contained in:
Davide P. Cervone 2011-02-25 14:47:32 -05:00
parent 97fb465311
commit 4a92b6c4cb
8 changed files with 13 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2255,9 +2255,11 @@ HUB.Register.StartupHook("End Config",function () {
}
});
});
MathJax.Hub.Register.StartupHook("End Cookie", function () {
if (HUB.config.menuSettings.zoom !== "None")
{AJAX.Require("[MathJax]/extensions/MathZoom.js")}
});
})(MathJax.Ajax, MathJax.Hub, MathJax.OutputJax["HTML-CSS"]);

View File

@ -460,7 +460,7 @@
setTimeout(MathJax.Callback(["loadComplete",nMML,"jax.js"]),0);
});
HUB.Register.StartupHook("End Config",function () {
HUB.Register.StartupHook("End Cookie",function () {
if (HUB.config.menuSettings.zoom !== "None")
{AJAX.Require("[MathJax]/extensions/MathZoom.js")}
});