Skip to content

Commit

Permalink
Accordion: Removed deprecated resize method. Fixes #6839 - Accordion:…
Browse files Browse the repository at this point in the history
… Remove resize method.
  • Loading branch information
jzaefferer committed Oct 24, 2012
1 parent d67bc41 commit 974e5f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
22 changes: 0 additions & 22 deletions tests/unit/accordion/accordion_deprecated.js
Expand Up @@ -4,28 +4,6 @@ var equalHeight = TestHelpers.accordion.equalHeight,
setupTeardown = TestHelpers.accordion.setupTeardown,
state = TestHelpers.accordion.state;

module( "accordion (deprecated) - resize", setupTeardown() );

test( "resize", function() {
expect( 6 );
var element = $( "#navigation" )
.parent()
.height( 300 )
.end()
.accordion({
heightStyle: "fill"
});
equalHeight( element, 255 );

element.parent().height( 500 );
element.accordion( "resize" );
equalHeight( element, 455 );
});





module( "accordion (deprecated) - changestart/change events", setupTeardown() );

test( "changestart", function() {
Expand Down
3 changes: 0 additions & 3 deletions ui/jquery.ui.accordion.js
Expand Up @@ -544,9 +544,6 @@ $.widget( "ui.accordion", {

// DEPRECATED
if ( $.uiBackCompat !== false ) {
// resize method
jQuery.ui.accordion.prototype.resize = jQuery.ui.accordion.prototype.refresh;

// change events
(function( $, prototype ) {
$.extend( prototype.options, {
Expand Down

0 comments on commit 974e5f8

Please sign in to comment.