Skip to content
Permalink
Browse files

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

  • Loading branch information...
scottgonzalez committed May 29, 2012
1 parent 6e2f95f commit 234ced07ef55df99f1886f47b7783dcbec33a77c
Showing with 2 additions and 8 deletions.
  1. +2 −8 ui/jquery.ui.tabs.js
@@ -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 ) {

0 comments on commit 234ced0

Please sign in to comment.
You can’t perform that action at this time.