1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/jquery/src/css/hiddenVisibleSelectors.js

16 lines
317 B
JavaScript
Raw Normal View History

2016-01-09 13:36:35 -05:00
define( [
2015-06-26 11:53:49 -04:00
"../core",
"../selector"
], function( jQuery ) {
2016-06-11 11:55:39 -04:00
"use strict";
2016-01-09 13:36:35 -05:00
2016-06-11 11:55:39 -04:00
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 );
2015-06-26 11:53:49 -04:00
};
2016-01-09 13:36:35 -05:00
} );