www

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

commit a967955ddb8cc45014822426a58f2b8d1084d71c
parent 58ce73bfd8e4dd5f0e02229b660f67ecea9cecea
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Fri, 31 Dec 2010 19:50:45 -0500

Allow jax configuration block to specify extensions to be loaded when the jax is loaded (rather than needing to have them loaded at MathJax configuration time)

Diffstat:
Munpacked/MathJax.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -1676,8 +1676,9 @@ MathJax.Hub.Startup = { if (this.require) { var require = this.require; if (!(require instanceof Array)) {require = [require]} for (var i = 0, m = require.length; i < m; i++) {queue.Push(AJAX.Require(require[i]))} - queue.Push(["loadArray",MathJax.Hub.Startup,this.config.require,"config"]); } + // Config may set the extensions, so use a function to delay making the reference + queue.Push([function (config,id) {return MathJax.Hub.Startup.loadArray(config.extensions,"extensions/"+id)},this.config||{},this.id]); queue.Push(["Post",HUB.Startup.signal,this.id+" Jax Startup"]); queue.Push(["Startup",this]); queue.Push(["Post",HUB.Startup.signal,this.id+" Jax Ready"]);