diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-24 09:50:08 -0400 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-24 17:44:06 -0400 |
commit | 0cdd5591be15b2d605191656f3468f36f7d5a94d (patch) | |
tree | f41c2ae5c99e8b67e5a3cb64a81304e3cffc98aa /ui/jquery.ui.accordion.js | |
parent | d07074dc3c3b2c73ccf1ed1cb2876df31154e039 (diff) | |
download | jquery-ui-0cdd5591be15b2d605191656f3468f36f7d5a94d.tar.gz jquery-ui-0cdd5591be15b2d605191656f3468f36f7d5a94d.zip |
Accordion: Remove deprecated height options. Fixes #5868 - Accordion: Remove clearStyle option. Fixes #5872 - Accordion: Remove autoHeight and fillSpace options.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r-- | ui/jquery.ui.accordion.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index fd3a983b8..4f1a6674b 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -576,51 +576,6 @@ if ( $.uiBackCompat !== false ) { }; }( jQuery, jQuery.ui.accordion.prototype ) ); - // height options - (function( $, prototype ) { - $.extend( prototype.options, { - heightStyle: null, // remove default so we fall back to old values - autoHeight: true, // use heightStyle: "auto" - clearStyle: false, // use heightStyle: "content" - fillSpace: false // use heightStyle: "fill" - }); - - var _create = prototype._create, - _setOption = prototype._setOption; - - $.extend( prototype, { - _create: function() { - this.options.heightStyle = this.options.heightStyle || - this._mergeHeightStyle(); - - _create.call( this ); - }, - - _setOption: function( key ) { - if ( key === "autoHeight" || key === "clearStyle" || key === "fillSpace" ) { - this.options.heightStyle = this._mergeHeightStyle(); - } - _setOption.apply( this, arguments ); - }, - - _mergeHeightStyle: function() { - var options = this.options; - - if ( options.fillSpace ) { - return "fill"; - } - - if ( options.clearStyle ) { - return "content"; - } - - if ( options.autoHeight ) { - return "auto"; - } - } - }); - }( jQuery, jQuery.ui.accordion.prototype ) ); - // icon options (function( $, prototype ) { $.extend( prototype.options.icons, { |