Skip to content
Permalink
Browse files

Accordion: Fix back-compat for active option.

  • Loading branch information...
scottgonzalez committed Oct 21, 2012
1 parent 78f781f commit eb392b30359e334a1777ed3a8bc1237ce09528a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit eb392b3

Please sign in to comment.
You can’t perform that action at this time.