From a202248780868c24e43b4e4c24a8eeed051aec5d Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Wed, 17 Mar 2010 12:49:27 +0000 Subject: [PATCH] Remove ui-helper-hidden-accessible from correct element. See r3880 and r3892 --- ui/jquery.ui.button.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ); -- 2.39.5