diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-11 20:21:38 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-11 20:21:38 +0000 |
commit | 89f10420cf24ecb93d018da236399ba9b5588add (patch) | |
tree | 2e132108b4dc66062723271270baa59de3d41d58 /ui | |
parent | 057e156e626a4cfd332eaa30ef56b41b6f47d507 (diff) | |
download | jquery-ui-89f10420cf24ecb93d018da236399ba9b5588add.tar.gz jquery-ui-89f10420cf24ecb93d018da236399ba9b5588add.zip |
Button: No need to check the button type before removing the hidden class.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.button.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index ce4c86a94..cf15d2ee6 100644 --- a/ui/jquery.ui.button.js +++ b/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 ); }, |