git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
79305ed
)
Change event did not fire in IE when an explicit .focus() was used. Fixes #6374.
author
jeresig
<jeresig@gmail.com>
Sat, 9 Oct 2010 23:04:15 +0000
(19:04 -0400)
committer
jeresig
<jeresig@gmail.com>
Sat, 9 Oct 2010 23:04:15 +0000
(19:04 -0400)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
c44d7d0
..
82e309d
100644
(file)
--- 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
// 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) );
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;
};
changeFilters = jQuery.event.special.change.filters;
+
+ // Handle when the input is .focus()'d
+ changeFilters.focus = changeFilters.beforeactivate;
}
function trigger( type, elem, args ) {
}
function trigger( type, elem, args ) {