aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-02 15:55:50 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-02 15:55:50 -0400
commitccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03 (patch)
treec826598d95c1b945677b9d375ff5ee80dab120eb /ui/jquery.ui.core.js
parent3876c874e3f311d263aef9f99ed2780afa1d41d7 (diff)
downloadjquery-ui-ccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03.tar.gz
jquery-ui-ccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03.zip
A few lint fixes.
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r--ui/jquery.ui.core.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index 574256cad..f66b71c6e 100644
--- a/ui/jquery.ui.core.js
+++ b/ui/jquery.ui.core.js
@@ -176,13 +176,13 @@ function focusable( element, isTabIndexNotNaN ) {
img = $( "img[usemap=#" + mapName + "]" )[0];
return !!img && visible( img );
}
- return ( /input|select|textarea|button|object/.test( nodeName )
- ? !element.disabled
- : "a" == nodeName
- ? element.href || isTabIndexNotNaN
- : isTabIndexNotNaN)
+ return ( /input|select|textarea|button|object/.test( nodeName ) ?
+ !element.disabled :
+ "a" == nodeName ?
+ element.href || isTabIndexNotNaN :
+ isTabIndexNotNaN) &&
// the element and all of its ancestors must be visible
- && visible( element );
+ visible( element );
}
function visible( element ) {