diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-29 10:04:20 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-29 10:04:20 -0400 |
commit | 234ced07ef55df99f1886f47b7783dcbec33a77c (patch) | |
tree | fa317c50a6cae176808304616dcfb2a640eea550 /ui/jquery.ui.tabs.js | |
parent | 6e2f95f59d73d86a2b84faecba3fca593534b8c9 (diff) | |
download | jquery-ui-234ced07ef55df99f1886f47b7783dcbec33a77c.tar.gz jquery-ui-234ced07ef55df99f1886f47b7783dcbec33a77c.zip |
Tabs: Simplify _findActive() now that hrefs are never used.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r-- | ui/jquery.ui.tabs.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 1224f47b9..9c5de53d1 100644 --- a/ui/jquery.ui.tabs.js +++ b/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 ) { |