Skip to content

Commit

Permalink
When we disabled triggering of clicks, we also killed off blur and fo…
Browse files Browse the repository at this point in the history
…cus, this fixes that (bug #1440).
  • Loading branch information
jeresig committed Jul 31, 2007
1 parent 660490e commit 4ae80a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event/event.js
Expand Up @@ -153,7 +153,7 @@ jQuery.event = {
if ( !fn && element["on"+type] && element["on"+type].apply( element, data ) === false )
val = false;

if ( fn && val !== false && !jQuery.nodeName(element, 'a') ) {
if ( fn && val !== false && !(jQuery.nodeName(element, 'a') && type == "click") ) {
this.triggered = true;
element[ type ]();
}
Expand Down

0 comments on commit 4ae80a1

Please sign in to comment.