Update IE8/IE7 object detection

bug/bundler_fix
sinn3r 2014-03-27 13:34:07 -05:00
parent 8df96a419b
commit 9c54421679
1 changed files with 4 additions and 7 deletions

View File

@ -964,13 +964,10 @@ window.os_detect.getVersion = function(){
// IE8 detection straight from IEBlog. Thank you Microsoft.
if (!ua_version) {
try {
ua_version = "8.0";
document.documentElement.style.display = "table-cell";
} catch(e) {
// This executes in IE7,
// but not IE8, regardless of mode
ua_version = "7.0";
if (css_is_valid('display', 'display', 'table-cell')) {
ua_version = '8.0';
} else {
ua_version = '7.0';
}
}
} else if (document.compatMode) {