From d67bc412a869938cb85ff02e10a78befd7409a1a Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Wed, 24 Oct 2012 11:11:47 -0400 Subject: Accordion: Removed deprecated activate method and expanded active option. Fixes #6837 - Accordion: Remove the activate method. Fixes #6853 - Accordion: Remove support for non-number/falsey values for active option. --- ui/jquery.ui.accordion.js | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'ui/jquery.ui.accordion.js') diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 76076131d..53e9189fc 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -544,25 +544,6 @@ $.widget( "ui.accordion", { // DEPRECATED if ( $.uiBackCompat !== false ) { - // expanded active option, activate method - (function( $, prototype ) { - prototype.activate = prototype._activate; - - var _findActive = prototype._findActive; - prototype._findActive = function( index ) { - if ( index === -1 ) { - index = false; - } - if ( index && typeof index !== "number" ) { - index = this.headers.index( this.headers.filter( index ) ); - if ( index === -1 ) { - index = false; - } - } - return _findActive.call( this, index ); - }; - }( jQuery, jQuery.ui.accordion.prototype ) ); - // resize method jQuery.ui.accordion.prototype.resize = jQuery.ui.accordion.prototype.refresh; -- cgit v1.2.3