]> source.dussan.org Git - jquery-ui.git/commitdiff
Update data naming for Accordion. Partial fix for #7810
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 12:26:44 +0000 (13:26 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 12:26:44 +0000 (13:26 +0100)
ui/jquery.ui.accordion.js

index 48e964a94479ef89379aaba5c442b83d32a3ae3c..6c4432828f5ae26c4ebb3bd983aad04e27eae3f2 100644 (file)
@@ -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 = {},