aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-21 15:54:19 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-21 15:54:19 -0400
commiteb392b30359e334a1777ed3a8bc1237ce09528a5 (patch)
tree8bad7be41de471032a1b0b09e95c960b31913ad8 /ui
parent78f781fccd2b757afa80e543a03f591ab029550d (diff)
downloadjquery-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.js2
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