aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-25 06:15:30 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-25 06:15:30 -0400
commit8d35c03dfdb3d4368bf38b113e25c06a82129cd5 (patch)
treefa55f235966ec077747576eb32270c4da8469f0f
parent054b208a9990fd71d30285e707ad53dae5a48247 (diff)
downloadjquery-ui-8d35c03dfdb3d4368bf38b113e25c06a82129cd5.tar.gz
jquery-ui-8d35c03dfdb3d4368bf38b113e25c06a82129cd5.zip
Accordion: Removed animated option. Fixes #8601 - Accordion: Remove animated option.
-rw-r--r--tests/unit/accordion/accordion_common_deprecated.js3
-rw-r--r--ui/jquery.ui.accordion.js34
2 files changed, 1 insertions, 36 deletions
diff --git a/tests/unit/accordion/accordion_common_deprecated.js b/tests/unit/accordion/accordion_common_deprecated.js
index 0ce36991c..3b1e0f4fe 100644
--- a/tests/unit/accordion/accordion_common_deprecated.js
+++ b/tests/unit/accordion/accordion_common_deprecated.js
@@ -1,8 +1,7 @@
TestHelpers.commonWidgetTests( "accordion", {
defaults: {
active: 0,
- animate: null,
- animated: "slide",
+ animate: {},
collapsible: false,
disabled: false,
event: "click",
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 6bafdd91f..6ec85b681 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -576,40 +576,6 @@ if ( $.uiBackCompat !== false ) {
return ret;
};
}( jQuery, jQuery.ui.accordion.prototype ) );
-
- // animated option
- // NOTE: this only provides support for "slide", "bounceslide", and easings
- // not the full $.ui.accordion.animations API
- (function( $, prototype ) {
- $.extend( prototype.options, {
- animate: null,
- animated: "slide"
- });
-
- var _create = prototype._create;
- prototype._create = function() {
- var options = this.options;
- if ( options.animate === null ) {
- if ( !options.animated ) {
- options.animate = false;
- } else if ( options.animated === "slide" ) {
- options.animate = 300;
- } else if ( options.animated === "bounceslide" ) {
- options.animate = {
- duration: 200,
- down: {
- easing: "easeOutBounce",
- duration: 1000
- }
- };
- } else {
- options.animate = options.animated;
- }
- }
-
- _create.call( this );
- };
- }( jQuery, jQuery.ui.accordion.prototype ) );
}
})( jQuery );