mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tabs: Simplify _findActive() now that hrefs are never used.
This commit is contained in:
10
ui/jquery.ui.tabs.js
vendored
10
ui/jquery.ui.tabs.js
vendored
@@ -447,14 +447,8 @@ $.widget( "ui.tabs", {
|
||||
});
|
||||
},
|
||||
|
||||
_findActive: function( selector ) {
|
||||
if ( typeof selector === "number" ) {
|
||||
return this.lis.eq( selector );
|
||||
}
|
||||
if ( typeof selector === "string" ) {
|
||||
return this.anchors.filter( "[href$='" + selector + "']" ).closest( "li" );
|
||||
}
|
||||
return $();
|
||||
_findActive: function( index ) {
|
||||
return index === false ? $() : this.lis.eq( index );
|
||||
},
|
||||
|
||||
_getIndex: function( index ) {
|
||||
|
||||
Reference in New Issue
Block a user