Skip to content

Commit

Permalink
Update data naming for Accordion. Partial fix for #7810
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 1, 2012
1 parent 811b377 commit 3a0b8b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.accordion.js
Expand Up @@ -405,7 +405,7 @@ $.widget( "ui.accordion", {
animate = this.options.animate || {},
options = down && animate.down || animate,
complete = function() {
toShow.removeData( "accordionHeight" );
toShow.removeData( "ui-accordion-height" );
that._completed( data );
};

Expand All @@ -430,7 +430,7 @@ $.widget( "ui.accordion", {
toHide.animate( hideProps, duration, easing );
toShow
.hide()
.data( "accordionHeight", {
.data( "ui-accordion-height", {
total: total,
toHide: toHide
})
Expand All @@ -455,7 +455,7 @@ $.widget( "ui.accordion", {

$.fx.step.accordionHeight = function( fx ) {
var elem = $( fx.elem ),
data = elem.data( "accordionHeight" );
data = elem.data( "ui-accordion-height" );
elem.height( data.total - elem.outerHeight() - data.toHide.outerHeight() + elem.height() );
};
var hideProps = {},
Expand Down

0 comments on commit 3a0b8b8

Please sign in to comment.