aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-03-17 20:22:49 -0400
committerScott González <scott.gonzalez@gmail.com>2015-03-18 10:39:25 -0400
commitc16a5e58f9e4c130d15e86898e62707c43877ab4 (patch)
tree896d62a7d711976c767889fa5a6871623584e672 /ui/tabs.js
parent8bcd363ae640bbefc28b720c1ab58b7992ea7044 (diff)
downloadjquery-ui-c16a5e58f9e4c130d15e86898e62707c43877ab4.tar.gz
jquery-ui-c16a5e58f9e4c130d15e86898e62707c43877ab4.zip
All: Consolidate `.removeAttr()` calls
Closes gh-1505
Diffstat (limited to 'ui/tabs.js')
-rw-r--r--ui/tabs.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/ui/tabs.js b/ui/tabs.js
index 4ecfacaf3..59f958196 100644
--- a/ui/tabs.js
+++ b/ui/tabs.js
@@ -729,23 +729,15 @@ return $.widget( "ui.tabs", {
.unbind( this.eventNamespace );
this.anchors
- .removeAttr( "role" )
- .removeAttr( "tabIndex" )
+ .removeAttr( "role tabIndex" )
.removeUniqueId();
this.tabs.add( this.panels ).each( function() {
if ( $.data( this, "ui-tabs-destroy" ) ) {
$( this ).remove();
} else {
- $( this )
- .removeAttr( "tabIndex" )
- .removeAttr( "aria-live" )
- .removeAttr( "aria-busy" )
- .removeAttr( "aria-selected" )
- .removeAttr( "aria-labelledby" )
- .removeAttr( "aria-hidden" )
- .removeAttr( "aria-expanded" )
- .removeAttr( "role" );
+ $( this ).removeAttr( "role tabIndex " +
+ "aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded" );
}
} );