From: Richard Worth Date: Wed, 17 Mar 2010 12:49:27 +0000 (+0000) Subject: Remove ui-helper-hidden-accessible from correct element. See r3880 and r3892 X-Git-Tag: 1.8~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a202248780868c24e43b4e4c24a8eeed051aec5d;p=jquery-ui.git Remove ui-helper-hidden-accessible from correct element. See r3880 and r3892 --- 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() );