From adff8e45e255409e8f78a3347dea01bdbee0a53d Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 24 Sep 2010 18:02:31 -0400 Subject: [PATCH] If an inline handler returns false, call event.preventDefault(). Fixes #6337. --- src/event.js | 1 + 1 file changed, 1 insertion(+) 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(); } } -- 2.39.5