Skip to content

Commit 75b94a1

Browse files
committed
Accordion: Handle changes to deprecated options: autoHeight, clearStyle, fillSpace.
1 parent e0ae192 commit 75b94a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/jquery.ui.accordion.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,12 @@ $.widget( "ui.accordion", {
194194

195195
_setOption: function( key, value ) {
196196
$.Widget.prototype._setOption.apply( this, arguments );
197-
197+
198+
// handle deprecated options
199+
// TODO: remove in 2.0
200+
if ( key === "autoHeight" || key === "clearStyle" || key === "fillSpace" ) {
201+
this.options.heightStyle = this._mergeHeightStyle();
202+
}
198203
if ( key == "active" ) {
199204
this.activate( value );
200205
}

0 commit comments

Comments
 (0)