Tabs: Fixed a broken commit for #3171.

This commit is contained in:
Tiago Freire 2010-07-16 18:10:57 -03:00 committed by Scott González
parent 64d90b4a71
commit eaddfedd66

View File

@ -579,13 +579,9 @@ $.widget("ui.tabs", {
select: function(index) {
index = this._getIndex(index);
else if (index === null) { // usage of null is deprecated, TODO remove in next release
index = -1;
}
if (index == -1 && this.options.collapsible) {
if (isNaN(index) && this.options.collapsible) {
index = this.options.selected;
}
this.anchors.eq(index).trigger(this.options.event + '.tabs');
return this;
},