Commit e0c80df5 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

clone.js fix variable reference

The variable 'field' was not defined in this context, but the issue was
not raised due to poor variable isolation in other parts of the code.

A global variable declaration was made in a loop in the model_loader.js file
causing the field variable to be accessible in the clone.js file, hence
the undefined variable issue was never raised with this piece of code.
parent ac5760b0
......@@ -311,8 +311,8 @@ Clone.prototype = {
if ((typeof p.seq != 'undefined') && (typeof p.start == 'undefined')) {
// sequence, we compute the start position
this.addSegFeatureFromSeq(field, p.seq)
p = this.seg[field]
this.addSegFeatureFromSeq(field_name, p.seq)
p = this.seg[field_name]
}
return p
......
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