Skip to content

Commit

Permalink
Accordion: Use .addClass() instead of .toggleClass() during init so t…
Browse files Browse the repository at this point in the history
…he classes can be added by the user.
  • Loading branch information
scottgonzalez committed Jul 16, 2010
1 parent fde8c64 commit f448c79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/jquery.ui.accordion.js
Expand Up @@ -79,7 +79,9 @@ $.widget("ui.accordion", {
}
}

this.active = this._findActive(this.active || o.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
this.active = this._findActive(this.active || o.active)
.addClass("ui-state-default ui-state-active")
.toggleClass("ui-corner-all ui-corner-top");
this.active.next().addClass('ui-accordion-content-active');

//Append icon elements
Expand Down

0 comments on commit f448c79

Please sign in to comment.