Skip to content

Commit 2563048

Browse files
committed
Remove dead code.
This line doesn’t appear to do anything useful, since the parent node is now saved in the closure. Previously, this line checked to see if target.parentNode was null, since this would cause a crash when computing the relative position.
1 parent 5f8056c commit 2563048

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

d3.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,6 @@ d3 = function() {
11311131
type: "dragstart"
11321132
});
11331133
function moved() {
1134-
if (!parent) return ended();
11351134
var p = position(parent, eventId), dx = p[0] - origin_[0], dy = p[1] - origin_[1];
11361135
dragged |= dx | dy;
11371136
origin_ = p;

0 commit comments

Comments
 (0)