diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-19 15:00:14 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-19 15:00:14 +0000 |
commit | e67bf62eeade075ed775ee8eddba0d4e90fc12d3 (patch) | |
tree | 71d5612be0af06a67c9477e0ea8ee445b98d730a /ui | |
parent | 3f3b3bbca85df8b56d75738581ca3c840d463af7 (diff) | |
download | jquery-ui-e67bf62eeade075ed775ee8eddba0d4e90fc12d3.tar.gz jquery-ui-e67bf62eeade075ed775ee8eddba0d4e90fc12d3.zip |
accordion: fixed two small variable issues related to the rewrite
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.accordion.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 19bd59b2f..a47a0a3c5 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -46,8 +46,7 @@ $.widget("ui.accordion", { .parent() .addClass("ui-accordion-content-wrap ui-helper-reset ui-widget-content ui-corner-bottom"); - //TODO: Resolve findActive - this.active = this._findActive(this.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).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"); this.active.parent().addClass(o.selectedClass); //Append icon elements @@ -189,7 +188,7 @@ $.widget("ui.accordion", { return selector ? typeof selector == "number" ? this.headers.filter(":eq(" + selector + ")") - : this.headers.not(headers.not(selector)) + : this.headers.not(this.headers.not(selector)) : selector === false ? $([]) : this.headers.filter(":eq(0)"); |