Plato on Github
Report Home
src/css/hiddenVisibleSelectors.js
Maintainability
84.79
Lines of code
15
Difficulty
8.00
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
define( [ "../core", "../selector" ], function( jQuery ) { "use strict"; jQuery.expr.pseudos.hidden = function( elem ) { return !jQuery.expr.pseudos.visible( elem ); }; jQuery.expr.pseudos.visible = function( elem ) { return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); }; } );