Skip to content
Permalink
Browse files

If an inline handler returns false, call event.preventDefault(). Fixe…

…s #6337.
  • Loading branch information
dmethvin authored and jeresig committed Sep 24, 2010
1 parent c4e6532 commit adff8e45e255409e8f78a3347dea01bdbee0a53d
Showing with 1 addition and 0 deletions.
  1. +1 −0 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();
}
}

0 comments on commit adff8e4

Please sign in to comment.
You can’t perform that action at this time.