Skip to content

Commit

Permalink
Remove un-used function arg (#18303)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Mar 13, 2020
1 parent 73ff8b9 commit 45d26f6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/react-dom/src/events/accumulateTwoPhaseListeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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>)
Expand Down

0 comments on commit 45d26f6

Please sign in to comment.