diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-16 13:40:11 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-16 13:40:11 -0400 |
commit | f448c79c01ef192fd71dce6ac5279e7795a8e417 (patch) | |
tree | 18f654d4c44d728e0f46826c44fc21f57b1c425a | |
parent | fde8c64fd37d6700e174ccf5ea1574e418db2c1e (diff) | |
download | jquery-ui-f448c79c01ef192fd71dce6ac5279e7795a8e417.tar.gz jquery-ui-f448c79c01ef192fd71dce6ac5279e7795a8e417.zip |
Accordion: Use .addClass() instead of .toggleClass() during init so the classes can be added by the user.
-rw-r--r-- | ui/jquery.ui.accordion.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index fd6331026..1d13e9566 100644 --- a/ui/jquery.ui.accordion.js +++ b/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 |