aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-16 13:40:11 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-16 13:40:11 -0400
commitf448c79c01ef192fd71dce6ac5279e7795a8e417 (patch)
tree18f654d4c44d728e0f46826c44fc21f57b1c425a
parentfde8c64fd37d6700e174ccf5ea1574e418db2c1e (diff)
downloadjquery-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.js4
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