util.js: detect firefox 4.X correctly.
Update the browser detection code (from mootools) with a fix that detects firefox 4.0 correctly.
This commit is contained in:
parent
c1eba48f79
commit
8787e49b92
|
@ -244,7 +244,7 @@ Util.Engine = {
|
||||||
//'webkit': (function() {
|
//'webkit': (function() {
|
||||||
// return ((typeof navigator.taintEnabled !== "unknown") && navigator.taintEnabled) ? false : ((Util.Features.xpath) ? ((Util.Features.query) ? 525 : 420) : 419); }()),
|
// return ((typeof navigator.taintEnabled !== "unknown") && navigator.taintEnabled) ? false : ((Util.Features.xpath) ? ((Util.Features.query) ? 525 : 420) : 419); }()),
|
||||||
'gecko': (function() {
|
'gecko': (function() {
|
||||||
return (!document.getBoxObjectFor && !window.mozInnerScreenX) ? false : ((document.getElementsByClassName) ? 19 : 18); }())
|
return (!document.getBoxObjectFor && window.mozInnerScreenX == null) ? false : ((document.getElementsByClassName) ? 19 : 18); }())
|
||||||
};
|
};
|
||||||
|
|
||||||
Util.Flash = (function(){
|
Util.Flash = (function(){
|
||||||
|
|
Loading…
Reference in New Issue