]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Gracefully falling back to a linear animation for any non-existant animati...
authorScott González <scott.gonzalez@gmail.com>
Fri, 17 Apr 2009 23:05:37 +0000 (23:05 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 17 Apr 2009 23:05:37 +0000 (23:05 +0000)
ui/ui.accordion.js

index c7e55f5c80df026de7a7c3896196ed2bf0e1bdab..42ac3f082bc975dcd82133b5f0f310cdf38d0e11 100644 (file)
@@ -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, {