Fixes #8858. Pass the .trigger(..., data) to the event.special._default method.

This commit is contained in:
Dave Methvin
2011-08-02 22:50:58 -04:00
committed by timmywil
parent d74c6bd0f4
commit 0dc7b16e94
2 changed files with 7 additions and 6 deletions

View File

@@ -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.