mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Fixed oldContent and newContent for events.
Fixes #4469 - Accordion: newContent/oldContent misbehaving.
This commit is contained in:
parent
83b16f528f
commit
c27bc6b035
4
ui/jquery.ui.accordion.js
vendored
4
ui/jquery.ui.accordion.js
vendored
@ -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] );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user