Commit b6ffacc4 authored by marc duez's avatar marc duez

code quality

parent 0eff0051
Pipeline #111450 failed with stages
in 45 seconds
......@@ -527,10 +527,10 @@ Segment.prototype = {
for (var i = 0; i < list.length; i++) {
var cloneID = list[i];
var liDom = this.index[cloneID];
if (this.m.clone(cloneID).isSelected()) { // the clone is selected
this.addToSegmenter(cloneID);
var liDom = this.index[cloneID];
this.addToSegmenter(cloneID);
if (liDom == null) continue;
liDom.display("main", "block");
this.div_elem(liDom.getElement("seq-fixed"), cloneID);
......@@ -541,8 +541,6 @@ Segment.prototype = {
delete this.sequence[cloneID]; // > delete the sequence
this.sequence_order.splice( this.sequence_order.indexOf(cloneID), 1 );
}
var liDom = this.index[cloneID];
if (liDom == null)
continue;
else
......
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