mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ref #14180, let focusin/out work on non-element targets.
This commit is contained in:
@@ -728,7 +728,7 @@ if ( !support.focusinBubbles ) {
|
||||
|
||||
jQuery.event.special[ fix ] = {
|
||||
setup: function() {
|
||||
var doc = this.ownerDocument,
|
||||
var doc = this.ownerDocument || this,
|
||||
attaches = data_priv.access( doc, fix );
|
||||
|
||||
if ( !attaches ) {
|
||||
@@ -737,7 +737,7 @@ if ( !support.focusinBubbles ) {
|
||||
data_priv.access( doc, fix, ( attaches || 0 ) + 1 );
|
||||
},
|
||||
teardown: function() {
|
||||
var doc = this.ownerDocument,
|
||||
var doc = this.ownerDocument || this,
|
||||
attaches = data_priv.access( doc, fix ) - 1;
|
||||
|
||||
if ( !attaches ) {
|
||||
|
||||
Reference in New Issue
Block a user