Show More
Commit Description:
Update README.rdoc
Commit Description:
Update README.rdoc
References:
File last commit:
Show/Diff file:
Action:
node_modules/jquery/src/css/hiddenVisibleSelectors.js
| 15 lines
| 317 B
| application/javascript
| JavascriptLexer
|
r789 | 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 ); | ||||
}; | ||||
} ); | ||||