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
5
ui/jquery.ui.accordion.js
vendored
5
ui/jquery.ui.accordion.js
vendored
@ -195,6 +195,11 @@ $.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