Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406.

This commit is contained in:
Timmy Willison
2013-01-30 20:05:39 -05:00
parent f5110cdec0
commit f3ce0e696d
2 changed files with 2 additions and 2 deletions

View File

@@ -534,7 +534,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
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;
return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
};
jQuery.expr.filters.visible = function( elem ) {