From 15cb028583c3e7495407683a6aeaf1da57c60c67 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 4 Sep 2012 11:49:58 +0200 Subject: [PATCH] fix --- html/force.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/force.js b/html/force.js index 01620a1..5087374 100644 --- a/html/force.js +++ b/html/force.js @@ -261,8 +261,8 @@ var force = d3.layout.force() force.on("tick", function() { var size = force.size() var nodes = force.nodes() - var n = nodes.length - for (i = 0; i < n; i++) { + var nl = nodes.length + for (i = 0; i < nl; i++) { var n = nodes[i] if (!n.fixed) { if (n.x < n.rx) n.x = n.rx