summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/ie8compat.js
blob: c95e56a7f1e3d0921b2d0380bca93de7916b1a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

// IE8 compat mode aka Fake IE7
// by Erich Ocean

// In this case, IE8 will be acting as IE7. You may choose to remove features in this case.

// related:
// james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/

Modernizr.addTest('ie8compat',function(){
    return (!window.addEventListener && document.documentMode && document.documentMode === 7);
});