From: jeresig Date: Mon, 18 Jan 2010 22:52:36 +0000 (-0500) Subject: Adding in the change recommended by Alexander Farkas to fix some bugs in the change... X-Git-Tag: 1.4.1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=435772e29b4ac4ccfdefbc4045d43f714e153381;p=jquery.git Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851. --- 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 ); } }