diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-04-17 23:05:37 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-04-17 23:05:37 +0000 |
commit | 6ca335f94ca6a075be608de99016577e78afb3b5 (patch) | |
tree | 37f274ee4b6be7678f38ca8b0e2bc3bfe64d4e99 /ui/ui.accordion.js | |
parent | 8fac95cea31704ed0d38e391887f390ece9a2c60 (diff) | |
download | jquery-ui-6ca335f94ca6a075be608de99016577e78afb3b5.tar.gz jquery-ui-6ca335f94ca6a075be608de99016577e78afb3b5.zip |
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.
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r-- | ui/ui.accordion.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index c7e55f5c8..42ac3f082 100644 --- a/ui/ui.accordion.js +++ b/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, { |