Skip to content

Commit 3a0b8b8

Browse files
committed
Update data naming for Accordion. Partial fix for #7810
1 parent 811b377 commit 3a0b8b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.accordion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ $.widget( "ui.accordion", {
405405
animate = this.options.animate || {},
406406
options = down && animate.down || animate,
407407
complete = function() {
408-
toShow.removeData( "accordionHeight" );
408+
toShow.removeData( "ui-accordion-height" );
409409
that._completed( data );
410410
};
411411

@@ -430,7 +430,7 @@ $.widget( "ui.accordion", {
430430
toHide.animate( hideProps, duration, easing );
431431
toShow
432432
.hide()
433-
.data( "accordionHeight", {
433+
.data( "ui-accordion-height", {
434434
total: total,
435435
toHide: toHide
436436
})
@@ -455,7 +455,7 @@ $.widget( "ui.accordion", {
455455

456456
$.fx.step.accordionHeight = function( fx ) {
457457
var elem = $( fx.elem ),
458-
data = elem.data( "accordionHeight" );
458+
data = elem.data( "ui-accordion-height" );
459459
elem.height( data.total - elem.outerHeight() - data.toHide.outerHeight() + elem.height() );
460460
};
461461
var hideProps = {},

0 commit comments

Comments
 (0)