From 02855292f2746d2c6f64a729730727df6684c6c7 Mon Sep 17 00:00:00 2001 From: Scott González Date: Sun, 26 Feb 2012 21:37:44 -0500 Subject: Accordion: Removed requirement for headers contain a child (and removed associated ui-accordion-heading class). --- ui/jquery.ui.accordion.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ui/jquery.ui.accordion.js') diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 01600ba4e..48e964a94 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -42,7 +42,6 @@ $.widget( "ui.accordion", { .addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" ); this._hoverable( this.headers ); this._focusable( this.headers ); - this.headers.find( ":first-child" ).addClass( "ui-accordion-heading" ); this.headers.next() .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" ); @@ -95,11 +94,6 @@ $.widget( "ui.accordion", { }); } - // only need links in tab order for Safari - if ( !$.browser.safari ) { - this.headers.find( "a" ).attr( "tabIndex", -1 ); - } - this._setupEvents( options.event ); }, @@ -146,9 +140,6 @@ $.widget( "ui.accordion", { .removeAttr( "tabIndex" ) .find( "a" ) .removeAttr( "tabIndex" ) - .end() - .find( ".ui-accordion-heading" ) - .removeClass( "ui-accordion-heading" ); this._destroyIcons(); // clean up content panels -- cgit v1.2.3