Commit e0ddcd32 authored by Aron Carroll's avatar Aron Carroll

Pass event object into event handler in Guest

This fixes an issue where an exception is raised when the onAdderMouseup
handler tries to call preventDefault on a non-existant event object.
parent 4ab2b058
......@@ -350,7 +350,7 @@ class Annotator.Guest extends Annotator
method: 'addToken'
params: token
onAdderMouseup: ->
onAdderMouseup: (event) ->
event.preventDefault()
event.stopPropagation()
......
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