Skip to content

Commit dcb1720

Browse files
petersendiditscottgonzalez
authored andcommitted
Tabs: Remove refresh dependancy in _setOptions
1 parent d819cdd commit dcb1720

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

ui/jquery.ui.tabs.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,26 @@ $.widget( "ui.tabs", {
130130
return;
131131
}
132132

133+
if ( key === "disabled" ) {
134+
// don't use the widget factory's disabled handling
135+
this._setupDisabled( value );
136+
return;
137+
}
138+
139+
this._super( "_setOption", key, value);
140+
133141
// setting collapsible: false while collapsed; open first panel
134142
if ( key === "collapsible" && !value && this.options.active === false ) {
135143
this._activate( 0 );
136144
}
137145

138-
this.options[ key ] = value;
139-
this.refresh();
146+
if ( key === "event" ) {
147+
this._setupEvents( value );
148+
}
149+
150+
if ( key === "fx" ) {
151+
this._setupFx( value );
152+
}
140153
},
141154

142155
_tabId: function( a ) {

0 commit comments

Comments
 (0)