Tabs: Simplify _findActive() now that hrefs are never used.

This commit is contained in:
Scott González
2012-05-29 10:04:20 -04:00
parent 6e2f95f59d
commit 234ced07ef

10
ui/jquery.ui.tabs.js vendored
View File

@@ -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 ) {