Stop trying to emulate the focus/blur event in IE, doesn't work as one might expect, anyway. Instead, implement the focusin/focusout events in all other browsers - which creates a much better parity across all browsers. Uses event capturing instead of bubbling to make it happen. Thanks to Alexander for the recommendation and to Joern Zaefferer for the original focus/blur delegation code.
This commit is contained in:
parent
5dc6b7ce34
commit
03481a52c7
3 changed files with 39 additions and 17 deletions
|
@ -111,7 +111,6 @@
|
|||
|
||||
jQuery.support.submitBubbles = eventSupported("submit");
|
||||
jQuery.support.changeBubbles = eventSupported("change");
|
||||
jQuery.support.focusBubbles = eventSupported("focus");
|
||||
|
||||
// release memory in IE
|
||||
root = script = div = all = a = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue