Fixes to detect Firefox 4 and Android 2.2 work better

git-svn-id: https://mathjax.svn.sourceforge.net/svnroot/mathjax/trunk@598 b8fd5906-0fad-46e2-a0d3-10d94ff285d1
This commit is contained in:
Davide Cervone 2010-09-01 17:09:49 +00:00
parent 5eece68de7
commit 0c1bddc0a2
2 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@ if (document.getElementById && document.childNodes && document.createElement) {
if (!window.MathJax) {window.MathJax= {}}
if (!MathJax.Hub) { // skip if already loaded
MathJax.version = "1.0.1";
MathJax.version = "1.0.2";
/**********************************************************/
@ -1810,12 +1810,12 @@ MathJax.Hub.Startup = {
var BROWSERS = {
isMac: (navigator.platform.substr(0,3) === "Mac"),
isPC: (navigator.platform.substr(0,3) === "Win"),
isMSIE: (document.all != null && !window.opera),
isFirefox: (document.ATTRIBUTE_NODE != null && window.directories != null),
isSafari: (navigator.vendor != null && navigator.vendor.match(/Apple/) != null && !navigator.omniWebString),
isMSIE: (window.ActiveXObject != null && window.clipboardData != null),
isFirefox: (window.netscape != null && document.ATTRIBUTE_NODE != null && window.opera == null),
isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null && window.chrome == null),
isChrome: (window.chrome != null && window.chrome.loadTimes != null),
isOpera: (window.opera != null && window.opera.version != null),
isChrome: (navigator.vendor != null && navigator.vendor.match(/Google/) != null),
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror")),
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"),
versionAtLeast: function (v) {
var bv = (this.version).split('.'); v = (new String(v)).split('.');
for (var i = 0, m = v.length; i < m; i++)