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

@ -195,6 +195,11 @@ $.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 );
}