From eaddfedd668c3397ed3c39d733d57d9c78466633 Mon Sep 17 00:00:00 2001 From: Tiago Freire Date: Fri, 16 Jul 2010 18:10:57 -0300 Subject: [PATCH] Tabs: Fixed a broken commit for #3171. --- ui/jquery.ui.tabs.js | 6 +----- 1 file changed, 1 insertion(+), 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; }, -- 2.39.5