fix for #4374, gap in :hidden, :visible logic
This commit is contained in:
parent
62a251a0cf
commit
2c31a1624f
2 changed files with 17 additions and 2 deletions
|
@ -969,7 +969,7 @@ jQuery.expr = Sizzle.selectors;
|
|||
jQuery.expr[":"] = jQuery.expr.filters;
|
||||
|
||||
Sizzle.selectors.filters.hidden = function(elem){
|
||||
return elem.offsetWidth === 0 || elem.offsetHeight === 0;
|
||||
return elem.offsetWidth === 0 && elem.offsetHeight === 0;
|
||||
};
|
||||
|
||||
Sizzle.selectors.filters.visible = function(elem){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue