]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Removed deprecated resize method. Fixes #6839 - Accordion: Remove resize...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 24 Oct 2012 15:14:35 +0000 (11:14 -0400)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 24 Oct 2012 21:44:06 +0000 (17:44 -0400)
tests/unit/accordion/accordion_deprecated.js
ui/jquery.ui.accordion.js

index 879a26e7b6db942daba9a0a62a3214d70f96a01e..57dabf418488417154ed62635e10d5fb6a99bd8d 100644 (file)
@@ -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() {
index 53e9189fc9df40ee4771c7086d673e792ab5836f..6bafdd91fcf17bb8c7ade531193154fcac11a4d7 100644 (file)
@@ -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, {