mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 23:18:05 -05:00
Changed the jQuery hidden/visible selectors to be a little more precise.
This commit is contained in:
@@ -937,11 +937,11 @@ jQuery.expr = Sizzle.selectors;
|
||||
jQuery.expr[":"] = jQuery.expr.filters;
|
||||
|
||||
Sizzle.selectors.filters.hidden = function(elem){
|
||||
return elem.offsetWidth === 0;
|
||||
return elem.offsetWidth === 0 || elem.offsetHeight === 0;
|
||||
};
|
||||
|
||||
Sizzle.selectors.filters.visible = function(elem){
|
||||
return elem.offsetWidth > 0;
|
||||
return elem.offsetWidth > 0 || elem.offsetHeight > 0;
|
||||
};
|
||||
|
||||
Sizzle.selectors.filters.animated = function(elem){
|
||||
|
||||
Reference in New Issue
Block a user