forcemap: fix clicking on links
This commit is contained in:
parent
653bbcd873
commit
03d0c5488f
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user