Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfe212d

Browse files
authored
Event: Simplify the check for saved data in leverageNative
Previously, when `leverageNative` handled async events, there wasa 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 sincegh-5223 and the check wasalready simplified in other places; this one was missed.Closesgh-5236Refgh-5223
1 parent6ad3651 commitdfe212d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ function leverageNative( el, type, isSetup ) {
556556

557557
// If this is a native event triggered above, everything is now in order
558558
// Fire an inner synthetic event with the original arguments
559-
}elseif(saved.length){
559+
}elseif(saved){
560560

561561
// ...and capture the result
562562
dataPriv.set(this,type,jQuery.event.trigger(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp