Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
e51fc02e
Commit
e51fc02e
authored
Oct 06, 2016
by
Mikaël Salson
Browse files
tools.js: correctIMGTPositionsForInsertions: handle special undefined case
parent
7bd4ff00
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/tools.js
View file @
e51fc02e
...
...
@@ -56,6 +56,8 @@ function endsWith(sequence, end) {
* rather than the corrected one.
*/
function
correctIMGTPositionsForInsertions
(
data
)
{
if
(
typeof
data
==
'
undefined
'
)
return
;
if
(
typeof
data
[
'
V-REGION identity % (with ins/del events)
'
]
!=
'
undefined
'
&&
data
[
'
V-REGION identity % (with ins/del events)
'
].
length
>
0
&&
typeof
data
[
'
V-REGION end
'
]
!=
'
undefined
'
)
{
...
...
Write
Preview
Markdown
is supported
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