diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-24 10:54:31 -0400 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-24 17:44:06 -0400 |
commit | 09eed560f87a122258818292ba3743f9382753c3 (patch) | |
tree | bd0f0b9d79f3e2d4548c9b4756b59d33ff1fa3fd /ui | |
parent | 0cdd5591be15b2d605191656f3468f36f7d5a94d (diff) | |
download | jquery-ui-09eed560f87a122258818292ba3743f9382753c3.tar.gz jquery-ui-09eed560f87a122258818292ba3743f9382753c3.zip |
Accordion: Removed deprecated navigation options. Fixes #5870 - Accordion: Remove navigation options.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.accordion.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 4f1a6674b..f9cf733d5 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -544,38 +544,6 @@ $.widget( "ui.accordion", { // DEPRECATED if ( $.uiBackCompat !== false ) { - // navigation options - (function( $, prototype ) { - $.extend( prototype.options, { - navigation: false, - navigationFilter: function() { - return this.href.toLowerCase() === location.href.toLowerCase(); - } - }); - - var _create = prototype._create; - prototype._create = function() { - if ( this.options.navigation ) { - var that = this, - headers = this.element.find( this.options.header ), - content = headers.next(), - current = headers.add( content ) - .find( "a" ) - .filter( this.options.navigationFilter ) - [ 0 ]; - if ( current ) { - headers.add( content ).each( function( index ) { - if ( $.contains( this, current ) ) { - that.options.active = Math.floor( index / 2 ); - return false; - } - }); - } - } - _create.call( this ); - }; - }( jQuery, jQuery.ui.accordion.prototype ) ); - // icon options (function( $, prototype ) { $.extend( prototype.options.icons, { |