Commit 6e7e17ef authored by marc duez's avatar marc duez

code quality

parent b6ffacc4
Pipeline #111456 failed with stages
in 17 seconds
......@@ -530,7 +530,8 @@ Segment.prototype = {
var liDom = this.index[cloneID];
if (this.m.clone(cloneID).isSelected()) { // the clone is selected
this.addToSegmenter(cloneID);
this.addToSegmenter(cloneID);
var liDom = this.index[cloneID];
if (liDom == null) continue;
liDom.display("main", "block");
this.div_elem(liDom.getElement("seq-fixed"), cloneID);
......@@ -541,6 +542,8 @@ 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