diff options
author | timmywil <timmywillisn@gmail.com> | 2011-09-15 09:27:36 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-19 15:42:32 -0400 |
commit | 76a84fba94e0fd32b1a6612c71ef09dee39f6666 (patch) | |
tree | 8652fd453da1ade17ac3b97f8297a7da92cf4ba2 /src/css.js | |
parent | daeb66504565d3b95dbd6310778def4166044750 (diff) | |
download | jquery-76a84fba94e0fd32b1a6612c71ef09dee39f6666.tar.gz jquery-76a84fba94e0fd32b1a6612c71ef09dee39f6666.zip |
Call .is(:visible) on the window or document does not thrown an error in IE. Fixes #10267.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index 7abf95e98..76c2255ce 100644 --- a/src/css.js +++ b/src/css.js @@ -371,7 +371,7 @@ if ( jQuery.expr && jQuery.expr.filters ) { var width = elem.offsetWidth, height = elem.offsetHeight; - return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none"); + return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none"); }; jQuery.expr.filters.visible = function( elem ) { |