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-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=435772e29b4ac4ccfdefbc4045d43f714e153381 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 af78543..820b2b0 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 ); } }