]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Fixed a broken commit for #3171.
authorTiago Freire <tiago.freire@gmail.com>
Fri, 16 Jul 2010 21:10:57 +0000 (18:10 -0300)
committerScott González <scott.gonzalez@gmail.com>
Fri, 16 Jul 2010 21:40:41 +0000 (17:40 -0400)
ui/jquery.ui.tabs.js

index 27754e539263d11dcfa61b6aafeffc3c1362e14a..2a12cb540ed9b1e1cd660002788785e9106c2547 100644 (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;
        },