Skip to content

Commit

Permalink
Merge pull request #350 from jmcarp/d3v3-compat-merge
Browse files Browse the repository at this point in the history
Skip call to selection.merge if undefined.
  • Loading branch information
lutzroeder authored Jan 13, 2019
2 parents c00ac0b + f7351d9 commit 5450627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/create-edge-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function createEdgePaths(selection, g, arrows) {
var newPaths = enter(previousPaths, g);
exit(previousPaths, g);

var svgPaths = previousPaths.merge(newPaths);
var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;
util.applyTransition(svgPaths, g)
.style("opacity", 1);

Expand Down

0 comments on commit 5450627

Please sign in to comment.