Skip to content
Permalink
Browse files

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.
  • Loading branch information...
scottgonzalez committed Apr 17, 2009
1 parent 8fac95c commit 6ca335f94ca6a075be608de99016577e78afb3b5
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/ui.accordion.js
@@ -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, {

0 comments on commit 6ca335f

Please sign in to comment.
You can’t perform that action at this time.