aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-11-14 16:33:12 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-11-14 16:40:22 -0500
commit5f325b1bee41d9fcf4b6c59ff44674524fa70400 (patch)
treeb9defe34382b78763f1bbf283ffff8c7a2920eab /src/event.js
parent9ca87af44c7c606e124ee4d2110cecf5d1ea5f5a (diff)
downloadjquery-5f325b1bee41d9fcf4b6c59ff44674524fa70400.tar.gz
jquery-5f325b1bee41d9fcf4b6c59ff44674524fa70400.zip
Ref #14180, let focusin/out work on non-element targets.
(cherry picked from commit c2aca17d457d302cb1683f925b9e5ee93f0984ea) Conflicts: src/event.js
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 3f19bab30..307907aa0 100644
--- a/src/event.js
+++ b/src/event.js
@@ -899,7 +899,7 @@ if ( !support.focusinBubbles ) {
jQuery.event.special[ fix ] = {
setup: function() {
- var doc = this.ownerDocument,
+ var doc = this.ownerDocument || this,
attaches = jQuery._data( doc, fix );
if ( !attaches ) {
@@ -908,7 +908,7 @@ if ( !support.focusinBubbles ) {
jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
},
teardown: function() {
- var doc = this.ownerDocument,
+ var doc = this.ownerDocument || this,
attaches = jQuery._data( doc, fix ) - 1;
if ( !attaches ) {