From 75b94a1c12277b024ed1833ef20aa893bcfb379c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 19 Dec 2010 16:19:54 -0500 Subject: [PATCH] Accordion: Handle changes to deprecated options: autoHeight, clearStyle, fillSpace. --- ui/jquery.ui.accordion.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index ccad15262..7dfc3523e 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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 ); } -- 2.39.5