Skip to content

Commit

Permalink
Accordion: Handle changes to deprecated options: autoHeight, clearSty…
Browse files Browse the repository at this point in the history
…le, fillSpace.
  • Loading branch information
scottgonzalez committed Dec 19, 2010
1 parent e0ae192 commit 75b94a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/jquery.ui.accordion.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ $.widget( "ui.accordion", {


_setOption: function( key, value ) { _setOption: function( key, value ) {
$.Widget.prototype._setOption.apply( this, arguments ); $.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" ) { if ( key == "active" ) {
this.activate( value ); this.activate( value );
} }
Expand Down

0 comments on commit 75b94a1

Please sign in to comment.