mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Accordion: Removed deprecated resize method. Fixes #6839 - Accordion: Remove resize method.
This commit is contained in:
parent
d67bc412a8
commit
974e5f8196
@ -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() {
|
||||
|
3
ui/jquery.ui.accordion.js
vendored
3
ui/jquery.ui.accordion.js
vendored
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user