]> source.dussan.org Git - jquery.git/commit
Event: Leverage native events for focus/blur/click; propagate additional data
authorRichard Gibson <richard.gibson@gmail.com>
Wed, 11 Jan 2017 22:19:30 +0000 (15:19 -0700)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 20 Mar 2019 15:40:16 +0000 (16:40 +0100)
commit669f720edc4f557dfef986db747c09ebfaa16ef5
treedba33f1b3713faa4d2e6e3cfedbd0795a28261cb
parenta0abd15b9e5aa9c1f36a9599e6095304825a7b9f
Event: Leverage native events for focus/blur/click; propagate additional data

Summary of the changes/fixes:
1. Trigger checkbox and radio click events identically (cherry-picked from
   b442abacbb8464f0165059e8da734e3143d0721f that was reverted before).
2. Manually trigger a native event before checkbox/radio handlers.
3. Add test coverage for triggering namespaced native-backed events.
4. Propagate extra parameters passed when triggering the click event to
   the handlers.
5. Intercept and preserve namespaced native-backed events.
6. Leverage native events for focus and blur.
7. Accept that focusin handlers may fire more than once for now.

Fixes gh-1741
Fixes gh-3423
Fixes gh-3751
Fixes gh-4139
Closes gh-4279
Ref gh-1367
Ref gh-3494
src/event.js
src/manipulation.js
src/manipulation/var/rcheckableType.js [deleted file]
src/serialize.js
src/var/rcheckableType.js [new file with mode: 0644]
test/unit/event.js