From 974e5f81964bb2449a5554d1bac1c82beeee9067 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Wed, 24 Oct 2012 11:14:35 -0400 Subject: [PATCH] Accordion: Removed deprecated resize method. Fixes #6839 - Accordion: Remove resize method. --- tests/unit/accordion/accordion_deprecated.js | 22 -------------------- ui/jquery.ui.accordion.js | 3 --- 2 files changed, 25 deletions(-) diff --git a/tests/unit/accordion/accordion_deprecated.js b/tests/unit/accordion/accordion_deprecated.js index 879a26e7b..57dabf418 100644 --- a/tests/unit/accordion/accordion_deprecated.js +++ b/tests/unit/accordion/accordion_deprecated.js @@ -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() { diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 53e9189fc..6bafdd91f 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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, { -- 2.39.5