aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-08-02 22:50:58 -0400
committertimmywil <timmywillisn@gmail.com>2011-09-19 15:42:31 -0400
commit0dc7b16e94ebb6ad27bcf8f12d62efac7d610db5 (patch)
treee6607e790b973fa76f957263f66f9a2b96f87514 /src/event.js
parentd74c6bd0f40f315ee12b411a8a5766596095d439 (diff)
downloadjquery-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.js2
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.