diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2019-03-25 13:12:08 -0400 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-03-25 18:12:08 +0100 |
commit | fe5f04de8fde9c69ed48283b99280aa6df3795c7 (patch) | |
tree | 5b79fcc0ac7859873a89db8619213aa4c4f89251 /test | |
parent | 753d591aea698e57d6db58c9f722cd0808619b1b (diff) | |
download | jquery-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.js | 6 |
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; } ) |