From 6ca335f94ca6a075be608de99016577e78afb3b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 17 Apr 2009 23:05:37 +0000 Subject: [PATCH] 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. --- ui/ui.accordion.js | 3 +++ 1 file changed, 3 insertions(+) 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, { -- 2.39.5