Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove un-used function arg #18303

Merged
merged 1 commit into from
Mar 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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