aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r--ui/jquery.ui.button.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index ce4c86a94..cf15d2ee6 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -202,7 +202,7 @@ $.widget( "ui.button", {
destroy: function() {
this.buttonElement
- .removeClass( baseClasses + " " + otherClasses )
+ .removeClass( baseClasses + " ui-helper-hidden-accessible " + otherClasses )
.removeAttr( "role" )
.removeAttr( "aria-pressed" )
.html( this.buttonElement.find(".ui-button-text").html() );
@@ -211,10 +211,6 @@ $.widget( "ui.button", {
this.buttonElement.removeAttr( "title" );
}
- if ( this.type === "checkbox" || this.type === "radio" ) {
- this.element.removeClass('ui-helper-hidden-accessible');
- }
-
$.Widget.prototype.destroy.call( this );
},