nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jquery / src / css / hiddenVisibleSelectors.js
1 define( [
2         "../core",
3         "../selector"
4 ], function( jQuery ) {
5
6 jQuery.expr.filters.hidden = function( elem ) {
7         return !jQuery.expr.filters.visible( elem );
8 };
9 jQuery.expr.filters.visible = function( elem ) {
10
11         // Support: Opera <= 12.12
12         // Opera reports offsetWidths and offsetHeights less than zero on some elements
13         // Use OR instead of AND as the element is not visible if either is true
14         // See tickets #10406 and #13132
15         return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
16 };
17
18 } );