Commit 0582d5c7 authored by Randall Leeds's avatar Randall Leeds

don't modify the annotation when rendering

parent ce766975
......@@ -351,7 +351,7 @@ class Hypothesis extends Annotator
items
.html (d) =>
env = $.extend {}, d.message.annotation,
text: this.renderAnnotation d.message.annotation
text: @renderer.makeHtml d.message.annotation.text
Handlebars.templates.summary env
.classed('detail', false)
.classed('summary', true)
......@@ -423,7 +423,7 @@ class Hypothesis extends Annotator
d.message.annotation.replyCount = replyCount
.html (d) =>
env = $.extend {}, d.message.annotation,
text: this.renderAnnotation d.message.annotation
text: @renderer.makeHtml d.message.annotation.text
Handlebars.templates.detail env
.classed('paper', (c) -> not c.parent.message?)
.classed('detail', true)
......@@ -562,7 +562,4 @@ class Hypothesis extends Annotator
else
annotation.id
renderAnnotation: (annotation) ->
annotation.rendered_text = @renderer.makeHtml(annotation.text)
window.Hypothesis = Hypothesis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment