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 ...@@ -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
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