]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Handle changes to deprecated options: autoHeight, clearStyle, fillSpace.
authorScott González <scott.gonzalez@gmail.com>
Sun, 19 Dec 2010 21:19:54 +0000 (16:19 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sun, 19 Dec 2010 21:19:54 +0000 (16:19 -0500)
ui/jquery.ui.accordion.js

index ccad152620943e71a6380f1cdb6539721f1e5ab4..7dfc3523ee48ed1a85fc6ae9a7f4091afbdd7d78 100644 (file)
@@ -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 );
                }