Link fix distanceFunction global var leak

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-05 11:30:18 +00:00
parent bc874a434e
commit eec31e6198
2 changed files with 3 additions and 3 deletions

View File

@@ -12,8 +12,8 @@ function startLinkSimulation() {
if (tweakedVerOfLink) {
force = d3.forceLinkFullyConnected()
.distance(function (n) {
return distanceFunction(n.source, n.target, props, norm);
.distance(function (n, m) {
return distanceFunction(n, m, props, norm);
});
}
else {