diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-21 15:54:19 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-21 15:54:19 -0400 |
commit | eb392b30359e334a1777ed3a8bc1237ce09528a5 (patch) | |
tree | 8bad7be41de471032a1b0b09e95c960b31913ad8 /ui | |
parent | 78f781fccd2b757afa80e543a03f591ab029550d (diff) | |
download | jquery-ui-eb392b30359e334a1777ed3a8bc1237ce09528a5.tar.gz jquery-ui-eb392b30359e334a1777ed3a8bc1237ce09528a5.zip |
Accordion: Fix back-compat for active option.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.accordion.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |