mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
Remove un-used function arg (#18303)
This commit is contained in:
parent
73ff8b9094
commit
45d26f6edb
|
|
@ -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>)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user