]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Renamed resize method to refresh. Fixes #6838 - Accordion: Rename resize...
authorScott González <scott.gonzalez@gmail.com>
Fri, 14 Jan 2011 17:18:33 +0000 (12:18 -0500)
committerScott González <scott.gonzalez@gmail.com>
Fri, 14 Jan 2011 17:18:33 +0000 (12:18 -0500)
tests/unit/accordion/accordion_methods.js
ui/jquery.ui.accordion.js

index e46dba30ada5492074880067a1ed9a0600398a1e..c801851d0c24bbee144366f7e61c49ba169224ea 100644 (file)
@@ -114,14 +114,14 @@ test("activate, jQuery or DOM element", function() {
        state(ac, 0, 1, 0);
 });
 
-test("resize", function() {
+test("refresh", function() {
        var expected = $('#navigation').parent().height(300).end().accordion({
                fillSpace: true
        });
        equalHeights(expected, 246, 258);
        
        expected.parent().height(500);
-       expected.accordion("resize");
+       expected.accordion("refresh");
        equalHeights(expected, 446, 458);
 });
 
index 672d57b87b0659ed8410d3e9f28d87abf448a86d..098ca4090669bf180e2676c64943a7e5b0ccbd76 100644 (file)
@@ -80,7 +80,7 @@ $.widget( "ui.accordion", {
                self.active.next().addClass( "ui-accordion-content-active" );
 
                self._createIcons();
-               self.resize();
+               self.refresh();
                
                // ARIA
                self.element.attr( "role", "tablist" );
@@ -223,7 +223,7 @@ $.widget( "ui.accordion", {
                }
        },
 
-       resize: function() {
+       refresh: function() {
                var options = this.options,
                        maxHeight;
 
@@ -697,4 +697,7 @@ $.extend( $.ui.accordion, {
        };
 }( jQuery, jQuery.ui.accordion.prototype ) );
 
+// resize method
+jQuery.ui.accordion.prototype.resize = jQuery.ui.accordion.prototype.refresh;
+
 })( jQuery );