mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-26 16:52:10 +00:00
!35776 修复registerCallback的实例ID获取不到时不执行
Merge pull request !35776 from yihao lin/container
This commit is contained in:
commit
0b360b6bcc
@ -1455,7 +1455,7 @@ ArkUINativeModuleValue FrameNodeBridge::RegisterFrameCallback(ArkUIRuntimeCallIn
|
||||
Local<JSValueRef> firstArg = runtimeCallInfo->GetCallArgRef(0);
|
||||
CHECK_NULL_RETURN(firstArg->IsFunction(), panda::JSValueRef::Undefined(vm));
|
||||
auto obj = firstArg->ToObject(vm);
|
||||
auto containerId = Container::CurrentId();
|
||||
auto containerId = Container::CurrentIdSafely();
|
||||
panda::Local<panda::FunctionRef> func = obj;
|
||||
auto getVsyncFunc = [vm, func = panda::CopyableGlobal(vm, func), containerId]() {
|
||||
panda::LocalScope pandaScope(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user