forcemap: fix clicking on links

This commit is contained in:
Nils Schneider 2015-04-08 01:12:30 +02:00
parent 653bbcd873
commit 03d0c5488f

View File

@ -231,7 +231,7 @@ define(["d3"], function (d3) {
.attr("class", "link") .attr("class", "link")
.on("click", function (d) { .on("click", function (d) {
if (!d3.event.defaultPrevented) if (!d3.event.defaultPrevented)
router.link(d)() router.link(d.o)()
}) })
linkEnter.append("line") linkEnter.append("line")