Skip to content
Permalink
Browse files

Core: Optimized isVisible() for the case where the element being chec…

…ked is not visible.
  • Loading branch information...
scottgonzalez committed Nov 8, 2008
1 parent fc406b7 commit 4addec6ac26ff479f920607b258dabacf2ff481a
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.core.js
@@ -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 (

0 comments on commit 4addec6

Please sign in to comment.
You can’t perform that action at this time.