Skip to content

Commit

Permalink
Tabs: Remove refresh dependancy in _setOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
petersendidit authored and scottgonzalez committed Apr 28, 2011
1 parent d819cdd commit dcb1720
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ui/jquery.ui.tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit dcb1720

Please sign in to comment.