Commit afd70bc6 authored by Marc Duez's avatar Marc Duez
Browse files

qunit test : debug phantom.js don't like .bind()

parent 7a22644f
......@@ -303,7 +303,7 @@ ScatterPlot.prototype = {
this.initMotor();
this.force
.nodes(this.nodes) //Nodes array initialisation
.on("tick", this.tick.bind(this)); // on -> Listen updates compared to modified positions
.on("tick", function(){self.tick()}); // on -> Listen updates compared to modified positions
//Création d'un element SVG pour chaque nodes (this.node.[...])
this.node = this.plot_container.selectAll("circle")
......
......@@ -7,7 +7,7 @@ test("scatterplot : grid", function() {
m.initClones()
var sp = new ScatterPlot("visu",m);
sp.init()
sp.init();
equal(sp.returnActiveclones(), 3, "returnActiveClones -> 3");
......
Supports Markdown
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