www

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

commit d3a9dbc80516bc05b4bb6b0206f0dfc1fd7ebce7
parent d36d551496d2d47008006a561ce2a5c4149809e2
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sun, 12 May 2013 13:45:09 -0400

Move adding the Safe extension to after the configuration is complete so that user configuration of the extensions array can't remove it.

Diffstat:
Munpacked/config/Safe.js | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/unpacked/config/Safe.js b/unpacked/config/Safe.js @@ -29,7 +29,9 @@ * limitations under the License. */ -if (!MathJax.Hub.config.extensions) {MathJax.Hub.config.extensions = []} -MathJax.Hub.config.extensions.push("Safe.js"); +MathJax.Hub.Register.StartupHook("End Config", function () { + if (!MathJax.Hub.config.extensions) {MathJax.Hub.config.extensions = []} + MathJax.Hub.config.extensions.push("Safe.js"); +}); -MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js"); -\ No newline at end of file +MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js");