Skip to content
Permalink
Browse files

Button: add explanatory comment for when we bind to blur

  • Loading branch information
mikesherov committed Nov 22, 2012
1 parent 70e0138 commit 509259a66e28aad3f574fb77a06ceb201a271698
Showing with 2 additions and 0 deletions.
  1. +2 −0 ui/jquery.ui.button.js
@@ -193,6 +193,8 @@ $.widget( "ui.button", {
$( this ).addClass( "ui-state-active" );
}
})
// see #8559, we bind to blur here in case the button element loses
// focus between keydown and keyup, it would be left in an "active" state
.bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() {
$( this ).removeClass( "ui-state-active" );
});

0 comments on commit 509259a

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