diff options
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r-- | ui/jquery.ui.button.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index bce54b3af..0c2603193 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -214,8 +214,10 @@ $.widget( "ui.button", { }, destroy: function() { + this.element + .removeClass( "ui-helper-hidden-accessible" ); this.buttonElement - .removeClass( baseClasses + " ui-helper-hidden-accessible " + otherClasses ) + .removeClass( baseClasses + " " + otherClasses ) .removeAttr( "role" ) .removeAttr( "aria-pressed" ) .html( this.buttonElement.find(".ui-button-text").html() ); |