Skip to content
Permalink
Browse files

Accordion: Handle changes to deprecated options: autoHeight, clearSty…

…le, fillSpace.
  • Loading branch information...
scottgonzalez committed Dec 19, 2010
1 parent e0ae192 commit 75b94a1c12277b024ed1833ef20aa893bcfb379c
Showing with 6 additions and 1 deletion.
  1. +6 −1 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 );
}

0 comments on commit 75b94a1

Please sign in to comment.
You can’t perform that action at this time.