summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_eventpseudomodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_eventpseudomodel.cpp')
-rw-r--r--fxjs/xfa/cjx_eventpseudomodel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fxjs/xfa/cjx_eventpseudomodel.cpp b/fxjs/xfa/cjx_eventpseudomodel.cpp
index b021689990..b12e82eaf4 100644
--- a/fxjs/xfa/cjx_eventpseudomodel.cpp
+++ b/fxjs/xfa/cjx_eventpseudomodel.cpp
@@ -170,9 +170,7 @@ CJS_Return CJX_EventPseudoModel::emit(
if (!pWidgetHandler)
return CJS_Return(true);
- CXFA_Node* pNode =
- pEventParam->m_pTarget ? pEventParam->m_pTarget->GetNode() : nullptr;
- pWidgetHandler->ProcessEvent(pNode, pEventParam);
+ pWidgetHandler->ProcessEvent(pEventParam->m_pTarget, pEventParam);
return CJS_Return(true);
}