aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2019-03-25 13:12:08 -0400
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-03-25 18:12:08 +0100
commitfe5f04de8fde9c69ed48283b99280aa6df3795c7 (patch)
tree5b79fcc0ac7859873a89db8619213aa4c4f89251 /test
parent753d591aea698e57d6db58c9f722cd0808619b1b (diff)
downloadjquery-fe5f04de8fde9c69ed48283b99280aa6df3795c7.tar.gz
jquery-fe5f04de8fde9c69ed48283b99280aa6df3795c7.zip
Event: Prevent leverageNative from double-firing focusin
Also, reduce size. Closes gh-4329 Ref gh-4279
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 27eda6a8c..c7497b9b0 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2956,11 +2956,7 @@ QUnit.test( "Check order of focusin/focusout events", function( assert ) {
.on( "focus", function() {
focus = true;
} )
-
- // PR gh-4279 fixed a lot of `focus`-related issues but made `focusin` fire twice.
- // We've decided to accept this drawback for now. If it's fixed, change `one` to `on`
- // in the following line:
- .one( "focusin", function() {
+ .on( "focusin", function() {
assert.ok( !focus, "Focusin event should fire before focus does" );
focus = true;
} )