@samitouri / QOS-React-2 / commits / 45d26f6edb

Remove un-used function arg (#18303)

Dominic Gannaway committed Mar 13, 2020 at 14:16 UTC 45d26f6edb9564cb3fe88241b02fb0128850e9f4
1 file changed -7
packages/react-dom/src/events/accumulateTwoPhaseListeners.js
-7
@@ -14,7 +14,6 @@ import {HostComponent} from 'shared/ReactWorkTags';
14
15 export default function accumulateTwoPhaseListeners(
16 event: ReactSyntheticEvent,
17 - skipTarget?: boolean,
17 ): void {
18 const phasedRegistrationNames = event.dispatchConfig.phasedRegistrationNames;
19 if (phasedRegistrationNames == null) {
@@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners(
24 const dispatchInstances = [];
25 let node = event._targetInst;
26
28 - // If we skip the target, then start the node at the parent
29 - // of the target.
30 - if (skipTarget) {
31 - node = node.return;
32 - }
33 -
27 // Accumulate all instances and listeners via the target -> root path.
28 while (node !== null) {
29 // We only care for listeners that are on HostComponents (i.e. <div>)