Commit 0e9d192e authored by marc duez's avatar marc duez

scatterplot.js : fix error 4413, some nodes in scatterplot don't have a...

scatterplot.js : fix error 4413, some nodes in scatterplot don't have a corresponding clone in model

-certainly due to async update 
-add a fix to always use model clone list instead of scatterplot node list
parent fb49cd78
Pipeline #159706 passed with stages
in 11 minutes and 3 seconds
......@@ -822,7 +822,7 @@ ScatterPlot.prototype = {
* update all clones (color / position / axis)
* */
updateClones: function() {
for (var i = 0; i < this.nodes.length; i++) {
for (var i = 0; i < this.m.clones.length; i++) {
this.updateClone(i);
}
......@@ -898,8 +898,7 @@ ScatterPlot.prototype = {
var clone = this.m.clone(cloneID)
var node = this.nodes[cloneID]
if (this.m.clone(cloneID)
.isActive()) {
if (clone && clone.isActive()) {
var seqID, size;
if (clone.hasSizeDistrib()){
......
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