Skip to content
Permalink
Browse files

Update data naming for Accordion. Partial fix for #7810

  • Loading branch information...
jzaefferer committed Mar 1, 2012
1 parent 811b377 commit 3a0b8b84335f5d576cfb6d0a01301086a091fa39
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.accordion.js
@@ -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 );
};

@@ -430,7 +430,7 @@ $.widget( "ui.accordion", {
toHide.animate( hideProps, duration, easing );
toShow
.hide()
.data( "accordionHeight", {
.data( "ui-accordion-height", {
total: total,
toHide: toHide
})
@@ -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 = {},

0 comments on commit 3a0b8b8

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