diff options
Diffstat (limited to 'ui/accordion.js')
-rw-r--r-- | ui/accordion.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ui/accordion.js b/ui/accordion.js index 65067cba9..67021784d 100644 --- a/ui/accordion.js +++ b/ui/accordion.js @@ -127,11 +127,7 @@ return $.widget( "ui.accordion", { // clean up headers this.headers - .removeAttr( "role" ) - .removeAttr( "aria-expanded" ) - .removeAttr( "aria-selected" ) - .removeAttr( "aria-controls" ) - .removeAttr( "tabIndex" ) + .removeAttr( "role aria-expanded aria-selected aria-controls tabIndex" ) .removeUniqueId(); this._destroyIcons(); @@ -139,9 +135,7 @@ return $.widget( "ui.accordion", { // clean up content panels contents = this.headers.next() .css( "display", "" ) - .removeAttr( "role" ) - .removeAttr( "aria-hidden" ) - .removeAttr( "aria-labelledby" ) + .removeAttr( "role aria-hidden aria-labelledby" ) .removeUniqueId(); if ( this.options.heightStyle !== "content" ) { |