Permalink
Browse files

Accordion: Use .addClass() instead of .toggleClass() during init so t…

…he classes can be added by the user.
  • Loading branch information...
1 parent fde8c64 commit f448c79c01ef192fd71dce6ac5279e7795a8e417 @scottgonzalez scottgonzalez committed Jul 16, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.accordion.js
@@ -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

0 comments on commit f448c79

Please sign in to comment.