diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-08-02 22:50:58 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-19 15:42:31 -0400 |
commit | 0dc7b16e94ebb6ad27bcf8f12d62efac7d610db5 (patch) | |
tree | e6607e790b973fa76f957263f66f9a2b96f87514 /src/event.js | |
parent | d74c6bd0f40f315ee12b411a8a5766596095d439 (diff) | |
download | jquery-0dc7b16e94ebb6ad27bcf8f12d62efac7d610db5.tar.gz jquery-0dc7b16e94ebb6ad27bcf8f12d62efac7d610db5.zip |
Fixes #8858. Pass the .trigger(..., data) to the event.special._default method.
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index cc85ec56a..bcf46f9a8 100644 --- a/src/event.js +++ b/src/event.js @@ -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. |