Skip to content
Permalink
Browse files

Tabs: Remove refresh dependancy in _setOptions

  • Loading branch information...
petersendidit authored and scottgonzalez committed Apr 17, 2011
1 parent d819cdd commit dcb1720f317aecfd7a8eaddd7a7756226d60ab09
Showing with 15 additions and 2 deletions.
  1. +15 −2 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 ) {

0 comments on commit dcb1720

Please sign in to comment.
You can’t perform that action at this time.