diff options
author | David Petersen <public@petersendidit.com> | 2012-10-17 11:35:27 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-18 00:08:37 -0400 |
commit | c2802d7aa05e6dc7731806a35d9f0057405a22c7 (patch) | |
tree | 3eec827a435f7f9569bb55ddc7932a3d11c65276 /ui | |
parent | 390510c7059d98d68cfe082530051c476ee08be4 (diff) | |
download | jquery-ui-c2802d7aa05e6dc7731806a35d9f0057405a22c7.tar.gz jquery-ui-c2802d7aa05e6dc7731806a35d9f0057405a22c7.zip |
Accordion: handle active: null. Fixes #8694: 1.9 Accordion - active: null allows panels to be collapsible.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.accordion.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 48e880a05..ff07a8e93 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -59,8 +59,8 @@ $.widget( "ui.accordion", { .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" ) .hide(); - // don't allow collapsible: false and active: false - if ( !options.collapsible && options.active === false ) { + // don't allow collapsible: false and active: false / null + if ( !options.collapsible && ( !options.active || typeof options.active !== "number" ) ) { options.active = 0; } // handle negative values |