src/css/hiddenVisibleSelectors.js

Maintainability

84.79

Lines of code

15

Created with Raphaël 2.1.002550751002016-7-102016-6-102016-5-112016-4-112016-3-122016-2-112016-1-12

2016-8-9
Maintainability: 84.79

Created with Raphaël 2.1.0051015202016-7-102016-6-102016-5-112016-4-112016-3-122016-2-112016-1-12

2016-8-9
Lines of Code: 15

Difficulty

8.00

Estimated Errors

0.09

Function weight

By Complexity

Created with Raphaël 2.1.0<anonymous>3

By SLOC

Created with Raphaël 2.1.0<anonymous>12
1
define( [
2
    "../core",
3
    "../selector"
4
], function( jQuery ) {
5
 
6
"use strict";
7
 
8
jQuery.expr.pseudos.hidden = function( elem ) {
9
    return !jQuery.expr.pseudos.visible( elem );
10
};
11
jQuery.expr.pseudos.visible = function( elem ) {
12
    return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
13
};
14
 
15
} );