Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
e0454e5f
Commit
e0454e5f
authored
Sep 22, 2017
by
aurelien beliard
Committed by
Mathieu Giraud
Nov 28, 2017
Browse files
repare out of scope variable usage
parent
8b469a81
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/model.js
View file @
e0454e5f
...
...
@@ -704,7 +704,7 @@ changeAlleleNotation: function(alleleNotation) {
* */
update_precision
:
function
()
{
var
min_size
=
1
var
max
for
(
var
i
=
0
;
i
<
this
.
samples
.
order
.
length
;
i
++
){
var
t
=
this
.
samples
.
order
[
i
]
var
size
=
this
.
min_sizes
[
t
]
...
...
@@ -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
tmp_max_value
=
this
.
normalization
.
B
max
=
this
.
normalization
.
B
}
else
{
var
tmp_max_value
=
this
.
normalization
.
B
/
this
.
normalization
.
A
[
j
]
max
=
this
.
normalization
.
B
/
this
.
normalization
.
A
[
j
]
}
if
(
tmp_max_value
>
this
.
max_size
)
this
.
max_size
=
tmp_max_value
;
if
(
max
>
this
.
max_size
)
this
.
max_size
=
max
;
}
}
...
...
@@ -982,6 +982,7 @@ changeAlleleNotation: function(alleleNotation) {
for
(
var
n
=
0
;
n
<
this
.
clones
.
length
;
n
++
)
{
this
.
clone
(
n
).
updateColor
()
}
// update icon if normalisation is setup
if
(
this
.
norm
){
$
(
"
i.icon-lock-1
"
).
toggleClass
(
'
icon-lock-1 icon-star-2
'
)
$
(
"
#
"
+
this
.
normalization
.
id
+
"
i.icon-star-2
"
).
toggleClass
(
'
icon-star-2 icon-lock-1
'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment