From: Scott González Date: Fri, 14 Jan 2011 17:18:33 +0000 (-0500) Subject: Accordion: Renamed resize method to refresh. Fixes #6838 - Accordion: Rename resize... X-Git-Tag: 1.9m4~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b2f6ce0955f2a08a2e52c688f23335423179cf1;p=jquery-ui.git Accordion: Renamed resize method to refresh. Fixes #6838 - Accordion: Rename resize method to refresh. --- diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js index e46dba30a..c801851d0 100644 --- a/tests/unit/accordion/accordion_methods.js +++ b/tests/unit/accordion/accordion_methods.js @@ -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); }); diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 672d57b87..098ca4090 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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 );