Skip to content
Permalink
Browse files

accordion: fixed two small variable issues related to the rewrite

  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Jan 19, 2009
1 parent 3f3b3bb commit e67bf62eeade075ed775ee8eddba0d4e90fc12d3
Showing with 2 additions and 3 deletions.
  1. +2 −3 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)");

0 comments on commit e67bf62

Please sign in to comment.
You can’t perform that action at this time.