jquery/src/event
Michał Gołębiowski-Owczarek 9e15d6b469
Event: Use only one focusin/out handler per matching window & document
The `doc` variable in:
https://github.com/jquery/jquery/blob/3.4.1/src/event/focusin.js#L30
matched `document` for `document` & `window` for `window`, creating two
separate wrapper event handlers & calling handlers twice if at least one
`focusout` or `focusin` handler was attached on *both* `window` & `document`,
or on `window` & another regular node.

Also, fix the "focusin from an iframe" test to actually verify the behavior
from commit 1cecf64e5a - the commit that
introduced the regression - to make sure we don't regress on either front.

Fixes gh-4652
Closes gh-4656
2020-04-06 20:34:40 +02:00
..
focusin.js Event: Use only one focusin/out handler per matching window & document 2020-04-06 20:34:40 +02:00
support.js Build: Put all AMD modules in "src/" in strict mode 2016-04-25 20:25:08 +02:00
trigger.js Data:Event:Manipulation: Prevent collisions with Object.prototype 2020-03-02 23:05:58 +01:00