aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-07-31 02:22:39 +0000
committerJohn Resig <jeresig@gmail.com>2007-07-31 02:22:39 +0000
commit4ae80a1e2cfe7445501e8f365d72417014cf1acb (patch)
tree97d4719d93cf4bf03d48472786b94e900ee3126c
parent660490e6f487332aaf10c19fd9bbb325bc9946af (diff)
downloadjquery-4ae80a1e2cfe7445501e8f365d72417014cf1acb.tar.gz
jquery-4ae80a1e2cfe7445501e8f365d72417014cf1acb.zip
When we disabled triggering of clicks, we also killed off blur and focus, this fixes that (bug #1440).
-rw-r--r--src/event/event.js2
1 files changed, 1 insertions, 1 deletions
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 ]();
}