aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.tabs.js10
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 ) {