Plato on Github
Report Home
src/css/var/isHidden.js
Maintainability
84.42
Lines of code
16
Difficulty
7.88
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
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 ); }; } );