diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-10-27 16:02:54 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-10-27 16:02:54 -0400 |
commit | df4a160be7fcc234a8e17eccb1c3fd02f231bcfc (patch) | |
tree | 239226234d686dc146b62d06f2007606bd6f7a5a /src/event.js | |
parent | 736d4d770633720493afe1fefd6f135095c5b5f7 (diff) | |
download | jquery-df4a160be7fcc234a8e17eccb1c3fd02f231bcfc.tar.gz jquery-df4a160be7fcc234a8e17eccb1c3fd02f231bcfc.zip |
Pass correct arg list to special._default. Thanks @mikaelkaron!
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 3576bffca..dcbeb4b7f 100644 --- a/src/event.js +++ b/src/event.js @@ -365,7 +365,7 @@ jQuery.event = { // If nobody prevented the default action, do it now if ( !event.isDefaultPrevented() ) { - if ( (!special._default || special._default.call( elem.ownerDocument, event, data ) === false) && + if ( (!special._default || special._default.apply( elem.ownerDocument, 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. |