aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.core.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 904469350..cae5af7e2 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -168,21 +168,10 @@ $.extend($.expr[':'], {
// TODO: add support for object, area
tabbable: function(a, i, m) {
-
+
var nodeName = a.nodeName.toLowerCase();
function isVisible(element) {
- function checkStyles(element) {
- var style = element.style;
- return (style.display != 'none' && style.visibility != 'hidden');
- }
-
- var visible = checkStyles(element);
-
- (visible && $.each($.dir(element, 'parentNode'), function() {
- return (visible = checkStyles(this));
- }));
-
- return visible;
+ return !$(element).parents().andSelf().filter(':hidden').length;
}
return (