mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Handle changes to deprecated options: autoHeight, clearStyle, fillSpace.
This commit is contained in:
parent
e0ae1929a0
commit
75b94a1c12
7
ui/jquery.ui.accordion.js
vendored
7
ui/jquery.ui.accordion.js
vendored
@ -194,7 +194,12 @@ $.widget( "ui.accordion", {
|
||||
|
||||
_setOption: function( key, value ) {
|
||||
$.Widget.prototype._setOption.apply( this, arguments );
|
||||
|
||||
|
||||
// handle deprecated options
|
||||
// TODO: remove in 2.0
|
||||
if ( key === "autoHeight" || key === "clearStyle" || key === "fillSpace" ) {
|
||||
this.options.heightStyle = this._mergeHeightStyle();
|
||||
}
|
||||
if ( key == "active" ) {
|
||||
this.activate( value );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user