Skip to content

Commit eaddfed

Browse files
BrazilianJoescottgonzalez
authored andcommitted
Tabs: Fixed a broken commit for #3171.
1 parent 64d90b4 commit eaddfed

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ui/jquery.ui.tabs.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,9 @@ $.widget("ui.tabs", {
579579

580580
select: function(index) {
581581
index = this._getIndex(index);
582-
else if (index === null) { // usage of null is deprecated, TODO remove in next release
583-
index = -1;
584-
}
585-
if (index == -1 && this.options.collapsible) {
582+
if (isNaN(index) && this.options.collapsible) {
586583
index = this.options.selected;
587584
}
588-
589585
this.anchors.eq(index).trigger(this.options.event + '.tabs');
590586
return this;
591587
},

0 commit comments

Comments
 (0)