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