Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
Services
Motion Bank API
Commits
c69227e4
Commit
c69227e4
authored
Aug 07, 2018
by
A. Koch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove parseSelector reference
parent
d2cbe4a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
src/lib/sessions.js
src/lib/sessions.js
+2
-11
No files found.
src/lib/sessions.js
View file @
c69227e4
...
...
@@ -4,7 +4,7 @@ const
TinyEmitter
=
require
(
'
tiny-emitter
'
),
constants
=
require
(
'
mbjs-data-models/src/constants
'
),
{
ObjectUtil
}
=
require
(
'
mbjs-utils
'
),
{
parseSelector
,
Sorting
}
=
require
(
'
mbjs-data-models/src/lib
'
),
{
Sorting
}
=
require
(
'
mbjs-data-models/src/lib
'
),
axios
=
require
(
'
axios
'
),
{
DateTime
}
=
require
(
'
luxon
'
)
...
...
@@ -20,16 +20,7 @@ const resurrectAnnotation = function (annotation) {
if
(
typeof
annotation
.
updated
===
'
string
'
)
annotation
.
updated
=
DateTime
.
fromISO
(
annotation
.
updated
)
if
(
annotation
.
target
&&
annotation
.
target
.
selector
)
{
if
(
typeof
annotation
.
target
.
selector
.
value
===
'
string
'
)
{
const
parsedSelector
=
parseSelector
(
annotation
.
target
.
selector
.
value
)
if
(
parsedSelector
.
end
)
{
annotation
.
target
.
selector
.
value
=
{
start
:
parsedSelector
.
start
,
end
:
parsedSelector
.
end
}
}
else
{
annotation
.
target
.
selector
.
value
=
parsedSelector
}
annotation
.
target
.
selector
.
value
=
DateTime
.
fromISO
(
annotation
.
target
.
selector
.
value
)
}
}
return
annotation
...
...
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