blob: 01ecc33962939a12a647b11827c71ca7bfb39f1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
define([
"../core",
"../selector"
], function( jQuery ) {
jQuery.expr.filters.hidden = function( elem ) {
// Use OR instead of AND as the element is not visible if either is true
// See tickets #10406 and #13132
return !elem.offsetWidth || !elem.offsetHeight;
};
jQuery.expr.filters.visible = function( elem ) {
return !jQuery.expr.filters.hidden( elem );
};
});
|