From 4ae80a1e2cfe7445501e8f365d72417014cf1acb Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 31 Jul 2007 02:22:39 +0000 Subject: [PATCH] When we disabled triggering of clicks, we also killed off blur and focus, this fixes that (bug #1440). --- src/event/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/event.js b/src/event/event.js index b13e5a02f..d753e6f85 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -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 ](); }