Fix indenting due to insertion of startup hooks for configuration blocks

This commit is contained in:
Davide P. Cervone 2011-02-26 10:18:56 -05:00
parent 5950641ee5
commit bc193eedd2
2 changed files with 208 additions and 209 deletions

View File

@ -679,7 +679,7 @@
/*************************************************************/
HUB.Register.StartupHook("End Config",function () {
HUB.Register.StartupHook("End Config",function () {
/*
* Get the menu settings from the HUB (which includes the
@ -753,7 +753,7 @@ HUB.Register.StartupHook("End Config",function () {
ITEM.COMMAND("MathJax Help",MENU.Help)
);
});
});
MENU.showRenderer = function (show) {
MENU.cookie.showRenderer = CONFIG.showRenderer = show; MENU.saveCookie();

View File

@ -2125,7 +2125,7 @@
});
});
HUB.Register.StartupHook("End Config",function () {
HUB.Register.StartupHook("End Config",function () {
//
// Handle browser-specific setup
//
@ -2249,9 +2249,8 @@ HUB.Register.StartupHook("End Config",function () {
// from the availableFonts array, if it is there.
//
adjustAvailableFonts: function (fonts) {
for (var i = 0, m = fonts.length; i < m; i++) {
if (fonts[i] === "STIX") {fonts.splice(i,1); m--; i--;}
}
for (var i = 0, m = fonts.length; i < m; i++)
{if (fonts[i] === "STIX") {fonts.splice(i,1); m--; i--;}}
if (this.config.preferredFont === "STIX") {this.config.preferredFont = fonts[0]}
}
});
@ -2265,11 +2264,11 @@ HUB.Register.StartupHook("End Config",function () {
}
});
});
});
MathJax.Hub.Register.StartupHook("End Cookie", 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"]);