make linkId a property (id) of link

This commit is contained in:
Nils Schneider 2015-04-06 23:10:37 +02:00
parent 315484625b
commit 389291e585
6 changed files with 11 additions and 19 deletions

View file

@ -13,7 +13,7 @@ define(function () {
s += "n:" + encodeURIComponent(d.node.nodeinfo.node_id)
if ("link" in d)
s += "l:" + encodeURIComponent(linkId(d.link))
s += "l:" + encodeURIComponent(d.link.id)
}
window.history.pushState(s, undefined, s)
@ -133,7 +133,7 @@ define(function () {
})
data.graph.links.forEach( function (d) {
objects.links[linkId(d)] = d
objects.links[d.id] = d
})
}