diff options
author | jeresig <jeresig@gmail.com> | 2010-01-18 17:52:36 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-18 17:52:36 -0500 |
commit | 435772e29b4ac4ccfdefbc4045d43f714e153381 (patch) | |
tree | 0f400c8d61b216436f70e6cd91b57378905ca28b /src | |
parent | 257a4693f4870489e779ae75e5c8ce5374b080a0 (diff) | |
download | jquery-435772e29b4ac4ccfdefbc4045d43f714e153381.tar.gz jquery-435772e29b4ac4ccfdefbc4045d43f714e153381.zip |
Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index af7854329..820b2b06a 100644 --- a/src/event.js +++ b/src/event.js @@ -670,9 +670,9 @@ function testChange( e ) { jQuery.data( elem, "_change_data", val ); } - if ( elem.type !== "select" && (data != null || val) ) { + if ( data != null || val ) { e.type = "change"; - return jQuery.event.trigger( e, arguments[1], this ); + return jQuery.event.trigger( e, arguments[1], elem ); } } |