From 435772e29b4ac4ccfdefbc4045d43f714e153381 Mon Sep 17 00:00:00 2001 From: jeresig Date: Mon, 18 Jan 2010 17:52:36 -0500 Subject: [PATCH] Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851. --- src/event.js | 4 ++-- 1 file 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 ); } } -- 2.39.5