From: Tiago Freire Date: Fri, 16 Jul 2010 21:10:57 +0000 (-0300) Subject: Tabs: Fixed a broken commit for #3171. X-Git-Tag: 1.8.3~38^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eaddfedd668c3397ed3c39d733d57d9c78466633;p=jquery-ui.git Tabs: Fixed a broken commit for #3171. --- 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; },