Fixed bug in IE version detection

This commit is contained in:
bcoles
2012-04-23 14:44:03 +09:30
parent 37c5edf2c2
commit b5b5f0cd1a

View File

@@ -49,7 +49,7 @@ beef.browser = {
* @example: beef.browser.isIE8()
*/
isIE8: function() {
return !!window.XMLHttpRequest && !window.chrome && !window.opera && !window.getComputedStyle && !!document.documentMode && !!window.XDomainRequest && !window.performance;
return !!window.XMLHttpRequest && !window.chrome && !window.opera && !!document.documentMode && !!window.XDomainRequest && !window.performance;
},
/**
@@ -57,7 +57,7 @@ beef.browser = {
* @example: beef.browser.isIE9()
*/
isIE9: function() {
return !!window.XMLHttpRequest && !window.chrome && !window.opera && !!window.getComputedStyle && !!document.documentMode && !!window.XDomainRequest && !!window.performance;
return !!window.XMLHttpRequest && !window.chrome && !window.opera && !!document.documentMode && !!window.XDomainRequest && !!window.performance;
},
/**