Commit 7d812343 authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

js/segmenter.js: Removing unselected clones from this.sequence

this.sequence needs to be updated otherwise it keep groing and isn't in sync
with the actual sequences in the segmenter.

Collaborative work with @RyanHerb and @magiraud.
parent 21fd11fd
......@@ -516,6 +516,7 @@ Segment.prototype = {
if (document.getElementById("seq" + list[i])) {
var element = document.getElementById("seq" + list[i]);
element.parentNode.removeChild(element);
delete this.sequence[list[i]];
}
}
}
......@@ -528,6 +529,7 @@ Segment.prototype = {
removeGermline:function(id){
elem = document.getElementById("seq"+id);
elem.parentNode.removeChild(elem)
delete this.sequence[id];
},
......
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