Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
8207d347
Commit
8207d347
authored
Jan 26, 2015
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder variable assignment in setupAndLoadAnnotations
parent
732bc59d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
annotation-mapper-service.coffee
h/static/scripts/annotation-mapper-service.coffee
+5
-7
No files found.
h/static/scripts/annotation-mapper-service.coffee
View file @
8207d347
...
...
@@ -29,6 +29,7 @@ class AnnotationMapperService
# From Annotator core.
setupAndLoadAnnotations
=
(
annotations
)
=>
clone
=
annotations
.
slice
()
loader
=
(
annList
=
[])
=>
now
=
annList
.
splice
(
0
,
10
)
...
...
@@ -42,13 +43,10 @@ class AnnotationMapperService
else
$rootScope
.
$emit
(
'annotationsLoaded'
,
clone
)
clone
=
annotations
.
slice
()
if
annotations
.
length
# Do we have to do something?
setTimeout
->
loader
(
annotations
)
else
# no pending scan
# We can start parsing them right away
loader
(
annotations
)
this
angular
.
module
(
'h'
).
service
(
'annotationMapper'
,
AnnotationMapperService
)
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