diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-03 06:31:12 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-03 06:31:12 -0400 |
commit | 45c727d75e411d0330027162646bbb26c4f671f1 (patch) | |
tree | 446b21bc5e016453d2ebe826cfad90a9401e626a /ui/jquery.ui.tabs.js | |
parent | 5e44b3ce8851f62a38ce9211c6721e1050e2dabf (diff) | |
download | jquery-ui-45c727d75e411d0330027162646bbb26c4f671f1.tar.gz jquery-ui-45c727d75e411d0330027162646bbb26c4f671f1.zip |
Tabs: Fixed enabled and disabled methods. Fixes #7142 - Tabs: Deprecate enable and disable events.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rwxr-xr-x | ui/jquery.ui.tabs.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7946cc667..39969d655 100755 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -783,10 +783,11 @@ if ( $.uiBackCompat !== false ) { disable = prototype.disable; prototype.enable = function( index ) { - var o = this.options, + var options = this.options, trigger; - if ( index && o.disabled || ($.isArray( o.disabled ) && $.inArray( index, o.disabled ) !== -1 ) ) { + if ( index && options.disabled === true || + ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) !== -1 ) ) { trigger = true; } @@ -798,10 +799,11 @@ if ( $.uiBackCompat !== false ) { }; prototype.disable = function( index ) { - var o = this.options, + var options = this.options, trigger; - if ( index && !o.disabled || ($.isArray( o.disabled ) && $.inArray( index, o.disabled ) == -1 ) ) { + if ( index && options.disabled === false || + ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) === -1 ) ) { trigger = true; } |