Fix reference to params.config to check for params (avoids undefined variable error)

git-svn-id: https://mathjax.svn.sourceforge.net/svnroot/mathjax/trunk@620 b8fd5906-0fad-46e2-a0d3-10d94ff285d1
This commit is contained in:
dpvc 2010-10-01 10:34:50 +00:00
parent 8971f378f5
commit 86ad73c8bd
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1473,7 +1473,7 @@ MathJax.Hub.Startup = {
}
if (this.script.match(/\S/)) {
this.queue.Push(this.script+";\n1;");
} else if (this.params.config) {
} else if (this.params && this.params.config) {
var files = this.params.config.split(/,/);
for (var i = 0, m = files.length; i < m; i++) {
if (!files[i].match(/\.js$/)) {files[i] += ".js"}