Accordion: Handle changes to deprecated options: autoHeight, clearStyle, fillSpace.

This commit is contained in:
Scott González 2010-12-19 16:19:54 -05:00
parent e0ae1929a0
commit 75b94a1c12

View File

@ -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 );
} }