Accordion: Fix back-compat for active option.

This commit is contained in:
Scott González 2012-10-21 15:54:19 -04:00
parent 78f781fccd
commit eb392b3035

View File

@ -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