zhaojs
2023-07-05 ee8972b623ba886317d26d2b5654d7fe5b71416a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
define( [
    "../../core",
    "../../selector"
 
    // css is assumed
], function( jQuery ) {
 
    return function( elem, el ) {
 
        // isHidden might be called from jQuery#filter function;
        // in that case, element will be second argument
        elem = el || elem;
        return jQuery.css( elem, "display" ) === "none" ||
            !jQuery.contains( elem.ownerDocument, elem );
    };
} );