aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
authorFabrício Matté <ult_combo@hotmail.com>2012-11-26 20:14:58 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-11-26 20:15:53 -0500
commitcaacf8f5041ad434b8e0dd1069936eb91e4c3394 (patch)
tree7f3ff90608c8e481faf54917c3b100a8c24d15cf /ui/jquery.ui.button.js
parent0cc81978b20b0bbe964ebf360a9833a04c3e39a2 (diff)
downloadjquery-ui-caacf8f5041ad434b8e0dd1069936eb91e4c3394.tar.gz
jquery-ui-caacf8f5041ad434b8e0dd1069936eb91e4c3394.zip
Button: Let change handler handle display and aria update. Fixed #5518 - Button: Incorrect state after double click in Firefox
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r--ui/jquery.ui.button.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index d6eed67dc..1108bd50c 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -147,8 +147,6 @@ $.widget( "ui.button", {
if ( options.disabled || clickDragged ) {
return false;
}
- $( this ).toggleClass( "ui-state-active" );
- that.buttonElement.attr( "aria-pressed", that.element[0].checked );
});
} else if ( this.type === "radio" ) {
this.buttonElement.bind( "click" + this.eventNamespace, function() {