Commit 324ef5e0 authored by csillag's avatar csillag

Don't try to add emphasis to highlights before they are created. Fixes #921.

parent 198f7e8a
......@@ -175,12 +175,12 @@ class Annotator.Guest extends Annotator
addEmphasis: (annotations) =>
@panel?.notify
method: "addEmphasis"
params: (a.id for a in annotations)
params: (a.id for a in annotations when a.id)
removeEmphasis: (annotations) =>
@panel?.notify
method: "removeEmphasis"
params: (a.id for a in annotations)
params: (a.id for a in annotations when a.id)
checkForStartSelection: (event) =>
# Override to prevent Annotator choking when this ties to access the
......
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