Commit 352b7441 authored by marc duez's avatar marc duez

scatterplot.js : compatibility for an user that apparently still use netscape

parent 05360ce6
Pipeline #115989 passed with stages
in 6 minutes and 21 seconds
......@@ -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), function(){return 0})
this.nodes[i].old_x = [0,0,0,0,0,0,0,0,0,0]
this.nodes[i].y = Math.random() * 250;
this.nodes[i].old_y = Array.from(Array(10), function(){return 0})
this.nodes[i].old_y = [0,0,0,0,0,0,0,0,0,0]
}
this.active_nodes = [];
......
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