diff --git a/feature-detects/ie8compat.js b/feature-detects/ie8compat.js index 57f235bdf6..55dab75a7e 100644 --- a/feature-detects/ie8compat.js +++ b/feature-detects/ie8compat.js @@ -7,5 +7,5 @@ define(['Modernizr'], function( Modernizr ) { // related: // james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/ - Modernizr.addTest('ie8compat', (!window.addEventListener && document.documentMode && document.documentMode === 7)); + Modernizr.addTest('ie8compat', (!window.addEventListener && !!document.documentMode && document.documentMode === 7)); });