From: Dave Methvin Date: Fri, 24 Sep 2010 22:02:31 +0000 (-0400) Subject: If an inline handler returns false, call event.preventDefault(). Fixes #6337. X-Git-Tag: 1.4.3rc1~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=adff8e45e255409e8f78a3347dea01bdbee0a53d;p=jquery.git If an inline handler returns false, call event.preventDefault(). Fixes #6337. --- diff --git a/src/event.js b/src/event.js index fb78bfeed..65b59523e 100644 --- a/src/event.js +++ b/src/event.js @@ -331,6 +331,7 @@ jQuery.event = { if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) { if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) { event.result = false; + event.preventDefault(); } }