mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 22:55:32 -05:00
Fixes #8858. Pass the .trigger(..., data) to the event.special._default method.
This commit is contained in:
@@ -346,7 +346,7 @@ jQuery.event = {
|
||||
if ( !event.isDefaultPrevented() ) {
|
||||
special = jQuery.event.special[ type ] || {};
|
||||
|
||||
if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) &&
|
||||
if ( (!special._default || special._default.call( elem.ownerDocument, event, data ) === false) &&
|
||||
!(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
|
||||
|
||||
// Call a native DOM method on the target with the same name name as the event.
|
||||
|
||||
Reference in New Issue
Block a user