Commit 435772e2 authored by jeresig's avatar jeresig

Adding in the change recommended by Alexander Farkas to fix some bugs in the...

Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851.
parent 257a4693
...@@ -670,9 +670,9 @@ function testChange( e ) { ...@@ -670,9 +670,9 @@ function testChange( e ) {
jQuery.data( elem, "_change_data", val ); jQuery.data( elem, "_change_data", val );
} }
if ( elem.type !== "select" && (data != null || val) ) { if ( data != null || val ) {
e.type = "change"; e.type = "change";
return jQuery.event.trigger( e, arguments[1], this ); return jQuery.event.trigger( e, arguments[1], elem );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment