Skip to content

Commit 8d35c03

Browse files
committed
Accordion: Removed animated option. Fixes #8601 - Accordion: Remove animated option.
1 parent 054b208 commit 8d35c03

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

tests/unit/accordion/accordion_common_deprecated.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
TestHelpers.commonWidgetTests( "accordion", {
22
defaults: {
33
active: 0,
4-
animate: null,
5-
animated: "slide",
4+
animate: {},
65
collapsible: false,
76
disabled: false,
87
event: "click",

ui/jquery.ui.accordion.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -576,40 +576,6 @@ if ( $.uiBackCompat !== false ) {
576576
return ret;
577577
};
578578
}( jQuery, jQuery.ui.accordion.prototype ) );
579-
580-
// animated option
581-
// NOTE: this only provides support for "slide", "bounceslide", and easings
582-
// not the full $.ui.accordion.animations API
583-
(function( $, prototype ) {
584-
$.extend( prototype.options, {
585-
animate: null,
586-
animated: "slide"
587-
});
588-
589-
var _create = prototype._create;
590-
prototype._create = function() {
591-
var options = this.options;
592-
if ( options.animate === null ) {
593-
if ( !options.animated ) {
594-
options.animate = false;
595-
} else if ( options.animated === "slide" ) {
596-
options.animate = 300;
597-
} else if ( options.animated === "bounceslide" ) {
598-
options.animate = {
599-
duration: 200,
600-
down: {
601-
easing: "easeOutBounce",
602-
duration: 1000
603-
}
604-
};
605-
} else {
606-
options.animate = options.animated;
607-
}
608-
}
609-
610-
_create.call( this );
611-
};
612-
}( jQuery, jQuery.ui.accordion.prototype ) );
613579
}
614580

615581
})( jQuery );

0 commit comments

Comments
 (0)