aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-11-21 19:58:59 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-11-21 19:58:59 -0500
commit509259a66e28aad3f574fb77a06ceb201a271698 (patch)
tree270ab7696ea8f7fe9139af25ee051b14ea9bb5f9
parent70e013830d6cd6cbeb873422912dd806dc42fbef (diff)
downloadjquery-ui-509259a66e28aad3f574fb77a06ceb201a271698.tar.gz
jquery-ui-509259a66e28aad3f574fb77a06ceb201a271698.zip
Button: add explanatory comment for when we bind to blur
-rw-r--r--ui/jquery.ui.button.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index b80fca4d9..d6eed67dc 100644
--- a/ui/jquery.ui.button.js
+++ b/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" );
});