mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Gracefully falling back to a linear animation for any non-existant animation specified for the animated option. Fixes #4392 - Accordion: option animated true causes JavaScript error.
This commit is contained in:
parent
8fac95cea3
commit
6ca335f94c
@ -335,6 +335,9 @@ $.widget("ui.accordion", {
|
||||
duration = o.duration,
|
||||
easing = o.animated;
|
||||
|
||||
if (easing && !$.ui.accordion.animations[easing] && !$.easing[easing]) {
|
||||
easing = 'slide';
|
||||
}
|
||||
if (!animations[easing]) {
|
||||
animations[easing] = function(options) {
|
||||
this.slide(options, {
|
||||
|
Loading…
Reference in New Issue
Block a user