From eb392b30359e334a1777ed3a8bc1237ce09528a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 21 Oct 2012 15:54:19 -0400 Subject: [PATCH] Accordion: Fix back-compat for active option. --- ui/jquery.ui.accordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index ff07a8e93..a23d5e66d 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -60,7 +60,7 @@ $.widget( "ui.accordion", { .hide(); // don't allow collapsible: false and active: false / null - if ( !options.collapsible && ( !options.active || typeof options.active !== "number" ) ) { + if ( !options.collapsible && (options.active === false || options.active == null) ) { options.active = 0; } // handle negative values -- 2.39.5