diff options
Diffstat (limited to 'node_modules/jquery/src/css/var/isHidden.js')
-rw-r--r-- | node_modules/jquery/src/css/var/isHidden.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/jquery/src/css/var/isHidden.js b/node_modules/jquery/src/css/var/isHidden.js new file mode 100644 index 0000000000..7997efff18 --- /dev/null +++ b/node_modules/jquery/src/css/var/isHidden.js @@ -0,0 +1,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 ); + }; +} ); |