Skip to content

Commit

Permalink
Accordion: Fix back-compat for active option.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 21, 2012
1 parent 78f781f commit eb392b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.accordion.js
Expand Up @@ -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
Expand Down

0 comments on commit eb392b3

Please sign in to comment.