dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.83k stars 588 forks source link

Skip call to selection.merge if undefined. #350

Closed jmcarp closed 5 years ago

jmcarp commented 5 years ago

The selection.merge method was added in d3v4. When selection.merge is undefined, as in d3v3, skip the call and use the existing selection.

This should fix https://github.com/dagrejs/dagre-d3/issues/309#issuecomment-450680411; cc @seelmann.

jmcarp commented 5 years ago

@lutzroeder ready for review when you have time.