Skip to content

Commit

Permalink
Fixed an undefined detect result for ie8compat in old IE
Browse files Browse the repository at this point in the history
  • Loading branch information
stucox committed Apr 18, 2013
1 parent 24909eb commit 3681dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/ie8compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});

0 comments on commit 3681dc0

Please sign in to comment.