Skip to content

Commit

Permalink
Merge branch 'Tencent:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoChenFx authored Feb 2, 2024
2 parents 51c145d + a2b4e18 commit 8220729
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unreal/Puerts/Source/JsEnv/Private/JsEnvImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,8 @@ bool FJsEnvImpl::AddToDelegate(

auto JsCallbacks = Iter->second.JsCallbacks.Get(Isolate);

(void) (JsCallbacks->Set(Context, JsCallbacks->Length(), JsFunction)); // push
bool bSingleDelegate = Iter->second.DelegateProperty != nullptr;
(void) (JsCallbacks->Set(Context, bSingleDelegate ? 0 : JsCallbacks->Length(), JsFunction)); // push

if (Iter->second.Proxy.IsValid())
{
Expand Down

0 comments on commit 8220729

Please sign in to comment.