diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-09-12 09:28:51 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-09-12 09:28:51 -0400 |
commit | 7023ed4699b0c52e253ba2b3949d08b3dac2905b (patch) | |
tree | 73b0ea7447fa3725dee2c6a2b9ee224d4a01ce35 /ui | |
parent | 01e3af4b92381943d5d8ea1deb938f44a361683b (diff) | |
download | jquery-ui-7023ed4699b0c52e253ba2b3949d08b3dac2905b.tar.gz jquery-ui-7023ed4699b0c52e253ba2b3949d08b3dac2905b.zip |
Tabs: Account for non-tab list items on init. Fixes #8568 - jQuery ui tabs: wrong default active li if ul contains extraneous elements.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7631366d6..60377ad13 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -102,7 +102,7 @@ $.widget( "ui.tabs", { // handle numbers: negative, out of range if ( active !== false ) { - active = this.tabs.eq( active ).index(); + active = this.tabs.index( this.tabs.eq( active ) ); if ( active === -1 ) { active = options.collapsible ? false : 0; } |