Commit bbd9c776 authored by Dave Methvin's avatar Dave Methvin

Fix #8732. Change feature detect for focusin event support, so IE9 won't have duplicate events.

parent b7dd8404
...@@ -850,7 +850,7 @@ function trigger( type, elem, args ) { ...@@ -850,7 +850,7 @@ function trigger( type, elem, args ) {
} }
// Create "bubbling" focus and blur events // Create "bubbling" focus and blur events
if ( document.addEventListener ) { if ( !jQuery.support.focusinBubbles ) {
jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
// Attach a single capturing handler while someone wants focusin/focusout // Attach a single capturing handler while someone wants focusin/focusout
......
...@@ -226,6 +226,7 @@ ...@@ -226,6 +226,7 @@
jQuery.support.submitBubbles = eventSupported("submit"); jQuery.support.submitBubbles = eventSupported("submit");
jQuery.support.changeBubbles = eventSupported("change"); jQuery.support.changeBubbles = eventSupported("change");
jQuery.support.focusinBubbles = document.attachEvent && eventSupported("focusin");
// release memory in IE // release memory in IE
div = all = a = null; div = all = a = null;
......
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