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
0582d5c7
Commit
0582d5c7
authored
Nov 13, 2012
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't modify the annotation when rendering
parent
ce766975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
hypothesis.coffee
h/js/src/hypothesis.coffee
+2
-5
No files found.
h/js/src/hypothesis.coffee
View file @
0582d5c7
...
@@ -351,7 +351,7 @@ class Hypothesis extends Annotator
...
@@ -351,7 +351,7 @@ class Hypothesis extends Annotator
items
items
.
html
(
d
)
=>
.
html
(
d
)
=>
env
=
$
.
extend
{},
d
.
message
.
annotation
,
env
=
$
.
extend
{},
d
.
message
.
annotation
,
text
:
this
.
renderAnnotation
d
.
message
.
annotation
text
:
@
renderer
.
makeHtml
d
.
message
.
annotation
.
text
Handlebars
.
templates
.
summary
env
Handlebars
.
templates
.
summary
env
.
classed
(
'detail'
,
false
)
.
classed
(
'detail'
,
false
)
.
classed
(
'summary'
,
true
)
.
classed
(
'summary'
,
true
)
...
@@ -423,7 +423,7 @@ class Hypothesis extends Annotator
...
@@ -423,7 +423,7 @@ class Hypothesis extends Annotator
d
.
message
.
annotation
.
replyCount
=
replyCount
d
.
message
.
annotation
.
replyCount
=
replyCount
.
html
(
d
)
=>
.
html
(
d
)
=>
env
=
$
.
extend
{},
d
.
message
.
annotation
,
env
=
$
.
extend
{},
d
.
message
.
annotation
,
text
:
this
.
renderAnnotation
d
.
message
.
annotation
text
:
@
renderer
.
makeHtml
d
.
message
.
annotation
.
text
Handlebars
.
templates
.
detail
env
Handlebars
.
templates
.
detail
env
.
classed
(
'paper'
,
(
c
)
->
not
c
.
parent
.
message
?
)
.
classed
(
'paper'
,
(
c
)
->
not
c
.
parent
.
message
?
)
.
classed
(
'detail'
,
true
)
.
classed
(
'detail'
,
true
)
...
@@ -562,7 +562,4 @@ class Hypothesis extends Annotator
...
@@ -562,7 +562,4 @@ class Hypothesis extends Annotator
else
else
annotation
.
id
annotation
.
id
renderAnnotation
:
(
annotation
)
->
annotation
.
rendered_text
=
@
renderer
.
makeHtml
(
annotation
.
text
)
window
.
Hypothesis
=
Hypothesis
window
.
Hypothesis
=
Hypothesis
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