From cbce3585bcd3edb0202839d9533c43d3a6df1d7f Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 3 May 2011 07:48:08 -0400 Subject: Tabs: Added tests for deprecated select method. Fixes #7138 - Tabs: Deprecate select method. --- ui/jquery.ui.tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 8bef69290..58c181670 100755 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -998,8 +998,8 @@ if ( $.uiBackCompat !== false ) { (function( $, prototype ) { prototype.select = function( index ) { index = this._getIndex( index ); - if ( index == -1 ) { - if ( this.options.collapsible && this.options.selected != -1 ) { + if ( index === -1 ) { + if ( this.options.collapsible && this.options.selected !== -1 ) { index = this.options.selected; } else { return; -- cgit v1.2.3