Commit 4ae80a1e authored by John Resig's avatar John Resig

When we disabled triggering of clicks, we also killed off blur and focus, this...

When we disabled triggering of clicks, we also killed off blur and focus, this fixes that (bug #1440).
parent 660490e6
...@@ -153,7 +153,7 @@ jQuery.event = { ...@@ -153,7 +153,7 @@ jQuery.event = {
if ( !fn && element["on"+type] && element["on"+type].apply( element, data ) === false ) if ( !fn && element["on"+type] && element["on"+type].apply( element, data ) === false )
val = false; val = false;
if ( fn && val !== false && !jQuery.nodeName(element, 'a') ) { if ( fn && val !== false && !(jQuery.nodeName(element, 'a') && type == "click") ) {
this.triggered = true; this.triggered = true;
element[ type ](); element[ type ]();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment