aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-03 07:48:08 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-03 07:48:08 -0400
commitcbce3585bcd3edb0202839d9533c43d3a6df1d7f (patch)
treeff9c58320fc8bf5989f18e46b67534dbeb745e36 /ui
parent75f7a786ae27f27f39aa5a674aedd2913884163b (diff)
downloadjquery-ui-cbce3585bcd3edb0202839d9533c43d3a6df1d7f.tar.gz
jquery-ui-cbce3585bcd3edb0202839d9533c43d3a6df1d7f.zip
Tabs: Added tests for deprecated select method. Fixes #7138 - Tabs: Deprecate select method.
Diffstat (limited to 'ui')
-rwxr-xr-xui/jquery.ui.tabs.js4
1 files changed, 2 insertions, 2 deletions
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;