Commit 6c6fe062 authored by marc duez's avatar marc duez

code quality

parent 8947a694
......@@ -29,4 +29,6 @@ dep.mk
/browser/cgi/align.cgi
/browser/js/conf.js
node_modules/
cypress/
\ No newline at end of file
cypress/
server/web2py/applications/vidjil/errors
*.bak
......@@ -291,9 +291,9 @@ ScatterPlot.prototype = {
this.nodes[i].r1 = 0; // longueur du rayon1
this.nodes[i].r2 = 0; // longueur du rayon2
this.nodes[i].x = Math.random() * 500;
this.nodes[i].old_x = Array.from(Array(10), () => 0)
this.nodes[i].old_x = Array.from(Array(10), function(){return 0})
this.nodes[i].y = Math.random() * 250;
this.nodes[i].old_y = Array.from(Array(10), () => 0)
this.nodes[i].old_y = Array.from(Array(10), function(){return 0})
}
this.active_nodes = [];
......@@ -976,8 +976,8 @@ ScatterPlot.prototype = {
.addAll(this.active_nodes);
//visit quadtree
for (var i = 0; i < this.active_nodes.length; i++)
this.quad.visit(this.collide(this.active_nodes[i]));
for (var j = 0; j < this.active_nodes.length; j++)
this.quad.visit(this.collide(this.active_nodes[j]));
//debug invalid node positions
this.node.each(this.debugNaN())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment