rename gotoAnything to router

This commit is contained in:
Nils Schneider 2015-03-25 19:45:21 +01:00
commit 265cb2e5eb
7 changed files with 39 additions and 39 deletions

View file

@ -1,5 +1,5 @@
define(function () {
return function(linkScale, gotoAnything) {
return function(linkScale, router) {
var self = this
var el
@ -45,7 +45,7 @@ define(function () {
var a = document.createElement("a")
a.textContent = d.source.node.nodeinfo.hostname + " " + d.target.node.nodeinfo.hostname
a.href = "#"
a.onclick = gotoAnything.link(d)
a.onclick = router.link(d)
td1.appendChild(a)
row.appendChild(td1)