Skip to content

Commit 234ced0

Browse files
committed
Tabs: Simplify _findActive() now that hrefs are never used.
1 parent 6e2f95f commit 234ced0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ui/jquery.ui.tabs.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,8 @@ $.widget( "ui.tabs", {
447447
});
448448
},
449449

450-
_findActive: function( selector ) {
451-
if ( typeof selector === "number" ) {
452-
return this.lis.eq( selector );
453-
}
454-
if ( typeof selector === "string" ) {
455-
return this.anchors.filter( "[href$='" + selector + "']" ).closest( "li" );
456-
}
457-
return $();
450+
_findActive: function( index ) {
451+
return index === false ? $() : this.lis.eq( index );
458452
},
459453

460454
_getIndex: function( index ) {

0 commit comments

Comments
 (0)