commit bfdb9c6b2202ef06385154a922875d5094702641
parent f55fc96ca327cef5c82afbf2face23c43fea7c9e
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 15 Feb 2011 07:53:27 -0500
IE9-RC fixes filter problem, and changes the name of the performance object
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js
@@ -885,10 +885,8 @@ MathJax.version = "1.0.11";
} else if (styles[id] != null) {
style = [];
for (var name in styles[id]) {if (styles[id].hasOwnProperty(name)) {
- if (styles[id][name] != null) {
- if (name !== "filter" || !MathJax.Hub.Browser.isIE9 || !styles[id][name].match(/dropshadow/i))
- {style[style.length] = name + ': ' + styles[id][name]}
- }
+ if (styles[id][name] != null)
+ {style[style.length] = name + ': ' + styles[id][name]}
}}
string += id +" {"+style.join('; ')+"}\n";
}
@@ -1977,7 +1975,7 @@ MathJax.Hub.Startup = {
},
Opera: function (browser) {browser.version = opera.version()},
MSIE: function (browser) {
- browser.isIE9 = !!(document.documentMode && window.msPerformance);
+ browser.isIE9 = !!(document.documentMode && (window.performance || window.msPerformance));
MathJax.HTML.setScriptBug = !browser.isIE9 || document.documentMode < 9;
}
});