Remove ui-helper-hidden-accessible from correct element. See r3880 and r3892

This commit is contained in:
Richard Worth 2010-03-17 12:49:27 +00:00
parent b69ba4d9b4
commit a202248780

View File

@ -214,8 +214,10 @@ $.widget( "ui.button", {
}, },
destroy: function() { destroy: function() {
this.element
.removeClass( "ui-helper-hidden-accessible" );
this.buttonElement this.buttonElement
.removeClass( baseClasses + " ui-helper-hidden-accessible " + otherClasses ) .removeClass( baseClasses + " " + otherClasses )
.removeAttr( "role" ) .removeAttr( "role" )
.removeAttr( "aria-pressed" ) .removeAttr( "aria-pressed" )
.html( this.buttonElement.find(".ui-button-text").html() ); .html( this.buttonElement.find(".ui-button-text").html() );