Skip to content
Permalink
Browse files

Button: No need to check the button type before removing the hidden c…

…lass.
  • Loading branch information...
scottgonzalez committed Mar 11, 2010
1 parent 057e156 commit 89f10420cf24ecb93d018da236399ba9b5588add
Showing with 1 addition and 5 deletions.
  1. +1 −5 ui/jquery.ui.button.js
@@ -202,7 +202,7 @@ $.widget( "ui.button", {

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

if ( this.type === "checkbox" || this.type === "radio" ) {
this.element.removeClass('ui-helper-hidden-accessible');
}

$.Widget.prototype.destroy.call( this );
},

0 comments on commit 89f1042

Please sign in to comment.
You can’t perform that action at this time.