Commit 609a1dbb authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/segmenter.js: comment

parent 5e21e0bd
...@@ -1246,9 +1246,12 @@ Sequence.prototype = { ...@@ -1246,9 +1246,12 @@ Sequence.prototype = {
// Build the highlight object from p // Build the highlight object from p
// Both 'start' and 'stop' positions are included in the highlight // Both 'start' and 'stop' positions are included in the highlight
if (p.constructor === String){ if (p.constructor === String){
// string-based fields ('id', ...).
// Should not exist anymore in the json, but populated by findPotentialField()
h.start = this.pos[clone.sequence.indexOf(p)] h.start = this.pos[clone.sequence.indexOf(p)]
h.stop = this.pos[clone.sequence.indexOf(p)+p.length-1] h.stop = this.pos[clone.sequence.indexOf(p)+p.length-1]
}else if (p.constructor === Object & typeof p.start != 'undefined'){ }else if (p.constructor === Object & typeof p.start != 'undefined'){
// object-based fields ('cdr3', ...)
h.start = this.pos[p.start]; h.start = this.pos[p.start];
h.stop = this.pos[p.stop]; h.stop = this.pos[p.stop];
......
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