diff options
author | David Petersen <public@petersendidit.com> | 2011-04-17 19:53:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-28 12:08:39 -0400 |
commit | dcb1720f317aecfd7a8eaddd7a7756226d60ab09 (patch) | |
tree | c14d9ebdeae48986f6f7bce01702f0a6f2739f42 /ui/jquery.ui.tabs.js | |
parent | d819cdd3a92d9d152a33ce6aecbd5cd9737a3ade (diff) | |
download | jquery-ui-dcb1720f317aecfd7a8eaddd7a7756226d60ab09.tar.gz jquery-ui-dcb1720f317aecfd7a8eaddd7a7756226d60ab09.zip |
Tabs: Remove refresh dependancy in _setOptions
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rwxr-xr-x | ui/jquery.ui.tabs.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 071fcbc67..47cca9c37 100755 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -130,13 +130,26 @@ $.widget( "ui.tabs", { return; } + if ( key === "disabled" ) { + // don't use the widget factory's disabled handling + this._setupDisabled( value ); + return; + } + + this._super( "_setOption", key, value); + // setting collapsible: false while collapsed; open first panel if ( key === "collapsible" && !value && this.options.active === false ) { this._activate( 0 ); } - this.options[ key ] = value; - this.refresh(); + if ( key === "event" ) { + this._setupEvents( value ); + } + + if ( key === "fx" ) { + this._setupFx( value ); + } }, _tabId: function( a ) { |