aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-10-09 19:04:15 -0400
committerjeresig <jeresig@gmail.com>2010-10-09 19:04:15 -0400
commitcbf9d874e52212d0289deae747066eccfebde770 (patch)
tree1a6bad54a87271bb50801eca5a9947eecded865e /src
parent79305ed14617488e60416227d7eee70e07fe0c3c (diff)
downloadjquery-cbf9d874e52212d0289deae747066eccfebde770.tar.gz
jquery-cbf9d874e52212d0289deae747066eccfebde770.zip
Change event did not fire in IE when an explicit .focus() was used. Fixes #6374.
Diffstat (limited to 'src')
-rw-r--r--src/event.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index c44d7d09d..82e309d98 100644
--- a/src/event.js
+++ b/src/event.js
@@ -809,7 +809,7 @@ if ( !jQuery.support.changeBubbles ) {
// Beforeactivate happens also before the previous element is blurred
// with this event you can't trigger a change event, but you can store
- // information/focus[in] is not needed anymore
+ // information
beforeactivate: function( e ) {
var elem = e.target;
jQuery.data( elem, "_change_data", getVal(elem) );
@@ -836,6 +836,9 @@ if ( !jQuery.support.changeBubbles ) {
};
changeFilters = jQuery.event.special.change.filters;
+
+ // Handle when the input is .focus()'d
+ changeFilters.focus = changeFilters.beforeactivate;
}
function trigger( type, elem, args ) {