]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Fix back-compat for active option.
authorScott González <scott.gonzalez@gmail.com>
Sun, 21 Oct 2012 19:54:19 +0000 (15:54 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sun, 21 Oct 2012 19:54:19 +0000 (15:54 -0400)
ui/jquery.ui.accordion.js

index ff07a8e9371ce28f45652ba7ef6e82ca42cba7fa..a23d5e66d2640f7ab0ce1cbb6f79260bfd439b4e 100644 (file)
@@ -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