Skip to content
Permalink
Browse files

Accordion: Renamed resize method to refresh. Fixes #6838 - Accordion:…

… Rename resize method to refresh.
  • Loading branch information...
scottgonzalez committed Jan 14, 2011
1 parent eabb391 commit 1b2f6ce0955f2a08a2e52c688f23335423179cf1
Showing with 7 additions and 4 deletions.
  1. +2 −2 tests/unit/accordion/accordion_methods.js
  2. +5 −2 ui/jquery.ui.accordion.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);
});

@@ -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 );

0 comments on commit 1b2f6ce

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