Skip to content
GitLab
Menu
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
1210b6ba
Commit
1210b6ba
authored
Aug 07, 2018
by
Mathieu Giraud
Browse files
js/germline_axis.js: pos(), defaults to "?", and always returns something
Should be more robust.
parent
94ef04b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/germline_axis.js
View file @
1210b6ba
...
...
@@ -107,7 +107,11 @@ GermlineAxis.prototype.init = function (values, fct) {
* */
GermlineAxis
.
prototype
.
pos
=
function
(
clone
)
{
var
pos
=
this
.
applyConverter
(
clone
);
return
this
.
label_mapping
[
pos
];
var
p
=
this
.
label_mapping
[
pos
];
if
(
typeof
p
==
'
undefined
'
)
{
p
=
this
.
label_mapping
[
"
?
"
];
}
return
(
typeof
p
!=
'
undefined
'
)
?
p
:
{
'
pos
'
:
1
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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