Skip to content

Variable used before initialization #235

@277hz

Description

@277hz

d3-zoom/src/zoom.js

Lines 274 to 275 in 84a5e7b

p = pointer(event, currentTarget),
currentTarget = event.currentTarget,

While not generally an issue as d3-selection pointer resolves currentTarget by itself, event.currentTarget could technically change in between due to being a getter function.

Respective code was added by Fil/d3-zoom@3156eb0.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions