mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Fixed a broken commit for #3171.
This commit is contained in:
parent
64d90b4a71
commit
eaddfedd66
6
ui/jquery.ui.tabs.js
vendored
6
ui/jquery.ui.tabs.js
vendored
@ -579,13 +579,9 @@ $.widget("ui.tabs", {
|
|||||||
|
|
||||||
select: function(index) {
|
select: function(index) {
|
||||||
index = this._getIndex(index);
|
index = this._getIndex(index);
|
||||||
else if (index === null) { // usage of null is deprecated, TODO remove in next release
|
if (isNaN(index) && this.options.collapsible) {
|
||||||
index = -1;
|
|
||||||
}
|
|
||||||
if (index == -1 && this.options.collapsible) {
|
|
||||||
index = this.options.selected;
|
index = this.options.selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.anchors.eq(index).trigger(this.options.event + '.tabs');
|
this.anchors.eq(index).trigger(this.options.event + '.tabs');
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user