diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-03-17 20:22:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-03-18 10:39:25 -0400 |
commit | c16a5e58f9e4c130d15e86898e62707c43877ab4 (patch) | |
tree | 896d62a7d711976c767889fa5a6871623584e672 /ui/button.js | |
parent | 8bcd363ae640bbefc28b720c1ab58b7992ea7044 (diff) | |
download | jquery-ui-c16a5e58f9e4c130d15e86898e62707c43877ab4.tar.gz jquery-ui-c16a5e58f9e4c130d15e86898e62707c43877ab4.zip |
All: Consolidate `.removeAttr()` calls
Closes gh-1505
Diffstat (limited to 'ui/button.js')
-rw-r--r-- | ui/button.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/button.js b/ui/button.js index 4d197819a..5182b1f12 100644 --- a/ui/button.js +++ b/ui/button.js @@ -253,8 +253,7 @@ $.widget( "ui.button", { .removeClass( "ui-helper-hidden-accessible" ); this.buttonElement .removeClass( baseClasses + " ui-state-active " + typeClasses ) - .removeAttr( "role" ) - .removeAttr( "aria-pressed" ) + .removeAttr( "role aria-pressed" ) .html( this.buttonElement.find(".ui-button-text").html() ); if ( !this.hasTitle ) { |