]> source.dussan.org Git - jquery-ui.git/commitdiff
Remove ui-helper-hidden-accessible from correct element. See r3880 and r3892
authorRichard Worth <rdworth@gmail.com>
Wed, 17 Mar 2010 12:49:27 +0000 (12:49 +0000)
committerRichard Worth <rdworth@gmail.com>
Wed, 17 Mar 2010 12:49:27 +0000 (12:49 +0000)
ui/jquery.ui.button.js

index bce54b3af7d0fecf9a18764e3402f67079d06d11..0c2603193ec0f07571b3eb4c3c2180b040976b10 100644 (file)
@@ -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() );