mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-29 12:37:59 -05:00
Core: Optimized isVisible() for the case where the element being checked is not visible.
This commit is contained in:
@@ -171,7 +171,7 @@ $.extend($.expr[':'], {
|
||||
|
||||
var nodeName = a.nodeName.toLowerCase();
|
||||
function isVisible(element) {
|
||||
return !$(element).parents().andSelf().filter(':hidden').length;
|
||||
return !($(element).is(':hidden') || $(element).parents(':hidden').length);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user