5 ], function( jQuery
) {
7 return function( elem
, el
) {
8 // isHidden might be called from jQuery#filter function;
9 // in that case, element will be second argument
11 return jQuery
.css( elem
, "display" ) === "none" || !jQuery
.contains( elem
.ownerDocument
, elem
);