From 974e5f81964bb2449a5554d1bac1c82beeee9067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 879a26e7b6d..57dabf41848 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 53e9189fc9d..6bafdd91fcf 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, {