aboutsummaryrefslogtreecommitdiffstats
path: root/ui/focusable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/focusable.js')
-rw-r--r--ui/focusable.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/ui/focusable.js b/ui/focusable.js
index 2db058678..4920417fc 100644
--- a/ui/focusable.js
+++ b/ui/focusable.js
@@ -62,20 +62,10 @@ $.ui.focusable = function( element, hasTabindex ) {
focusableIfVisible = hasTabindex;
}
- return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) );
+ return focusableIfVisible && $( element ).is( ":visible" ) &&
+ $( element ).css( "visibility" ) === "visible";
};
-// Support: IE 8 only
-// IE 8 doesn't resolve inherit to visible/hidden for computed values
-function visible( element ) {
- var visibility = element.css( "visibility" );
- while ( visibility === "inherit" ) {
- element = element.parent();
- visibility = element.css( "visibility" );
- }
- return visibility === "visible";
-}
-
$.extend( $.expr.pseudos, {
focusable: function( element ) {
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );