]> source.dussan.org Git - jquery.git/commit
Event: Simplify the check for saved data in leverageNative
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 3 Apr 2023 16:21:15 +0000 (18:21 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 3 Apr 2023 16:21:30 +0000 (18:21 +0200)
commit9ab26aa508c6cca6afa9c6247ee6d50eaed2da77
tree18ef501559698febcaebceae8f33853daa9cac3a
parent14685b318ae056cf9011ba2dcc73c077c3ae5a2d
Event: Simplify the check for saved data in leverageNative

Previously, when `leverageNative` handled async events, there was
a case where an empty placeholder object was set as a result.
Covering both such an object and `false` required a `length` check.
However, this is not necessary since gh-5223 and the check was
already simplified in other places; this one was missed.

Closes gh-5236
Ref gh-5223

(cherry picked from commit dfe212d5a1eed6b4a67d1cbd04ece09bbac33699)
src/event.js