mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove un-used function arg (#18303)
This commit is contained in:
@@ -14,7 +14,6 @@ import {HostComponent} from 'shared/ReactWorkTags';
|
||||
|
||||
export default function accumulateTwoPhaseListeners(
|
||||
event: ReactSyntheticEvent,
|
||||
skipTarget?: boolean,
|
||||
): void {
|
||||
const phasedRegistrationNames = event.dispatchConfig.phasedRegistrationNames;
|
||||
if (phasedRegistrationNames == null) {
|
||||
@@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners(
|
||||
const dispatchInstances = [];
|
||||
let node = event._targetInst;
|
||||
|
||||
// If we skip the target, then start the node at the parent
|
||||
// of the target.
|
||||
if (skipTarget) {
|
||||
node = node.return;
|
||||
}
|
||||
|
||||
// Accumulate all instances and listeners via the target -> root path.
|
||||
while (node !== null) {
|
||||
// We only care for listeners that are on HostComponents (i.e. <div>)
|
||||
|
||||
Reference in New Issue
Block a user