]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Removed animated option. Fixes #8601 - Accordion: Remove animated option.
authorScott González <scott.gonzalez@gmail.com>
Thu, 25 Oct 2012 10:15:30 +0000 (06:15 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 25 Oct 2012 10:15:30 +0000 (06:15 -0400)
tests/unit/accordion/accordion_common_deprecated.js
ui/jquery.ui.accordion.js

index 0ce36991cc74584a600a8229dd7f94ce65755755..3b1e0f4fe81bb94b2a3309eb6a661e01c625917c 100644 (file)
@@ -1,8 +1,7 @@
 TestHelpers.commonWidgetTests( "accordion", {
        defaults: {
                active: 0,
-               animate: null,
-               animated: "slide",
+               animate: {},
                collapsible: false,
                disabled: false,
                event: "click",
index 6bafdd91fcf17bb8c7ade531193154fcac11a4d7..6ec85b6814075dbb41d29004a4217c6561c87127 100644 (file)
@@ -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 );