Permalink
Browse files

Replace "new Array" with "[]".

  • Loading branch information...
1 parent d5eac02 commit 210fb826164d7d369fdbf6a1641a977292e0ef86 @jasondavies jasondavies committed Jul 8, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 d3.layout.js
  2. +1 −1 d3.layout.min.js
  3. +1 −1 src/layout/force.js
View
@@ -378,7 +378,7 @@ d3.layout.force = function() {
(o = nodes[i]).index = i;
}
- distances = new Array(m);
+ distances = [];
for (i = 0; i < m; ++i) {
o = links[i];
if (typeof o.source == "number") o.source = nodes[o.source];
Oops, something went wrong.

0 comments on commit 210fb82

Please sign in to comment.