mirror of
https://github.com/jquery/jquery.git
synced 2026-02-17 10:46:03 -05:00
Call .is(:visible) on the window or document does not thrown an error in IE. Fixes #10267.
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user