Check for config array before issuing v1.0-warning message (resolves issue #163)

This commit is contained in:
Davide P. Cervone 2011-08-27 11:38:31 -04:00
parent 418e5a293e
commit 07faf4e0b4
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@ if (!window.MathJax) {window.MathJax= {}}
if (!MathJax.Hub) { // skip if already loaded
MathJax.version = "1.1a";
MathJax.fileversion = "1.1.10";
MathJax.fileversion = "1.1.11";
/**********************************************************/
@ -1597,7 +1597,8 @@ MathJax.Hub.Startup = {
//
ConfigDefault: function () {
var CONFIG = MathJax.Hub.config;
if (CONFIG["v1.0-compatible"] && CONFIG.jax.length === 0 && !this.params.config)
if (CONFIG["v1.0-compatible"] && (CONFIG.jax||[]).length === 0 &&
!this.params.config && (CONFIG.config||[]).length === 0)
{return MathJax.Ajax.Require(this.URL("extensions","v1.0-warning.js"))}
},