diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-09-19 11:34:48 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-10-06 17:58:28 -0400 |
commit | b7da3b00439f9217922544c644150cac7528ce5a (patch) | |
tree | dea7ca5f3ec73369cb93505955bc8d720033cdc9 /src/event.js | |
parent | 11f386fe89b7b6b86e6c87e5bb22cc34535138b9 (diff) | |
download | jquery-b7da3b00439f9217922544c644150cac7528ce5a.tar.gz jquery-b7da3b00439f9217922544c644150cac7528ce5a.zip |
Fix #13993. Save result of native inline handlers. Close gh-1368.
(cherry picked from commit 3bcd04f528597dac0a7084865461574ab4a06465)
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index f99613851..3f900e2b4 100644 --- a/src/event.js +++ b/src/event.js @@ -318,8 +318,11 @@ jQuery.event = { // Native handler handle = ontype && cur[ ontype ]; - if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { - event.preventDefault(); + if ( handle && handle.apply && jQuery.acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } } } event.type = type; |