]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/jquery/src/css/var/isHidden.js
15ab81a979815ebfa61eb748188923205cf9aad6
[rbdr/dotfiles] / atom / packages / ex-mode / node_modules / space-pen / node_modules / jquery / src / css / var / isHidden.js
1 define([
2 "../../core",
3 "../../selector"
4 // css is assumed
5 ], function( jQuery ) {
6
7 return function( elem, el ) {
8 // isHidden might be called from jQuery#filter function;
9 // in that case, element will be second argument
10 elem = el || elem;
11 return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
12 };
13 });