Accordion: Fixed oldContent and newContent for events.

Fixes #4469 - Accordion: newContent/oldContent misbehaving.
This commit is contained in:
Scott González 2010-02-24 17:25:54 +00:00
parent 83b16f528f
commit c27bc6b035

View File

@ -313,8 +313,8 @@ $.widget("ui.accordion", {
options: o,
newHeader: clickedIsActive && o.collapsible ? $([]) : clicked,
oldHeader: this.active,
newContent: clickedIsActive && o.collapsible ? $([]) : toShow.find('> *'),
oldContent: toHide.find('> *')
newContent: clickedIsActive && o.collapsible ? $([]) : toShow,
oldContent: toHide
},
down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );