diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-02-24 17:25:54 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-02-24 17:25:54 +0000 |
commit | c27bc6b0355899d7d5cf40e594fa033e159b7653 (patch) | |
tree | 8121341b133b5cc2b4e0ea80b22bdca0574e5ccf | |
parent | 83b16f528f98d33f1f9a719eb2a39d13a8176f14 (diff) | |
download | jquery-ui-c27bc6b0355899d7d5cf40e594fa033e159b7653.tar.gz jquery-ui-c27bc6b0355899d7d5cf40e594fa033e159b7653.zip |
Accordion: Fixed oldContent and newContent for events.
Fixes #4469 - Accordion: newContent/oldContent misbehaving.
-rw-r--r-- | ui/jquery.ui.accordion.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index ab775ca07..d1a7abd6d 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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] ); |