Commit 830846b8 authored by aurelien beliard's avatar aurelien beliard Committed by Mathieu Giraud

repare out of scope variable usage

parent 3e119c44
......@@ -717,11 +717,11 @@ changeAlleleNotation: function(alleleNotation) {
if (this.norm && this.normalization.method=="constant"){
for (var j=0; j<this.samples.order.length; j++){
if(this.normalization.A[j]==0){
var max = this.normalization.B
var tmp_max = this.normalization.B
}else{
var max = this.normalization.B/this.normalization.A[j]
var tmp_max = this.normalization.B/this.normalization.A[j]
}
if (max>this.max_size) this.max_size=max;
if (tmp_max>this.max_size) this.max_size=tmp_max;
}
}
......
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