mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Remove refresh dependancy in _setOptions
This commit is contained in:
parent
d819cdd3a9
commit
dcb1720f31
17
ui/jquery.ui.tabs.js
vendored
17
ui/jquery.ui.tabs.js
vendored
@ -130,13 +130,26 @@ $.widget( "ui.tabs", {
|
|||||||
return;
|
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
|
// setting collapsible: false while collapsed; open first panel
|
||||||
if ( key === "collapsible" && !value && this.options.active === false ) {
|
if ( key === "collapsible" && !value && this.options.active === false ) {
|
||||||
this._activate( 0 );
|
this._activate( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.options[ key ] = value;
|
if ( key === "event" ) {
|
||||||
this.refresh();
|
this._setupEvents( value );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( key === "fx" ) {
|
||||||
|
this._setupFx( value );
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_tabId: function( a ) {
|
_tabId: function( a ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user