aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiago Freire <tiago.freire@gmail.com>2010-07-16 18:10:57 -0300
committerScott González <scott.gonzalez@gmail.com>2010-07-16 17:40:41 -0400
commiteaddfedd668c3397ed3c39d733d57d9c78466633 (patch)
treed06f7bfda3d463902a059733c5a79b0d2b15f672
parent64d90b4a710d520a44408ccfa8df1100b0b95b4d (diff)
downloadjquery-ui-eaddfedd668c3397ed3c39d733d57d9c78466633.tar.gz
jquery-ui-eaddfedd668c3397ed3c39d733d57d9c78466633.zip
Tabs: Fixed a broken commit for #3171.
-rw-r--r--ui/jquery.ui.tabs.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 27754e539..2a12cb540 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -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;
},