Link fix distanceFunction global var leak
This commit is contained in:
1 parent
bc874a434e
commit
eec31e6198
2 files changed
+3
-3
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user