mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
16 lines
380 B
JavaScript
16 lines
380 B
JavaScript
define([
|
|
"../core",
|
|
"../selector"
|
|
], function( jQuery ) {
|
|
|
|
jQuery.expr.filters.hidden = function( elem ) {
|
|
// Support: Opera <= 12.12
|
|
// Opera reports offsetWidths and offsetHeights less than zero on some elements
|
|
return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
|
|
};
|
|
jQuery.expr.filters.visible = function( elem ) {
|
|
return !jQuery.expr.filters.hidden( elem );
|
|
};
|
|
|
|
});
|