Fix a couple of issues for IE (extra comma, wrong element name, and better handling of readyState)

This commit is contained in:
Davide P. Cervone 2011-09-18 23:39:19 -04:00
parent 4c5458c216
commit 29f1823deb
13 changed files with 16 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1836,7 +1836,7 @@ MathJax.Hub.Startup = {
onLoad: function (when) {
var onload = this.onload =
MathJax.Callback(function () {MathJax.Hub.Startup.signal.Post("onLoad")});
if (document.readyState && document.readyState !== "loading") {return [onload]}
if (document.body && document.readyState && document.readyState !== "loading") {return [onload]}
if (window.addEventListener) {
window.addEventListener("load",onload,false);
if (!this.params.noDOMContentEvent)

View File

@ -180,7 +180,7 @@ MathJax.Extension.tex2jax = {
} else if (match[0].substr(0,4) === "\\ref" || match[0].substr(0,6) === "\\eqref") {
this.search = {
mode: "", end: "", open: element,
olen: 0, opos: this.pattern.lastIndex - match[0].length,
olen: 0, opos: this.pattern.lastIndex - match[0].length
}
return this.endMatch([""],element);
} else { // escaped dollar signs

View File

@ -479,7 +479,7 @@
test = this.getTestSpan(script);
var W = test.lastChild.lastChild.offsetWidth,
w = test.lastChild.lastChild.firstChild.offsetWidth;
math.HTMLCSS.marginScale = (2*w - W ? w/(2*w - W) : 1);
jax.HTMLCSS.marginScale = (2*w - W ? w/(2*w - W) : 1);
}
}
//