Commit e52a87f7 authored by Randall Leeds's avatar Randall Leeds

properly notify provider on editor actions

Fixes a bug where unsaved annotations could cause persistent
highlights.
parent aa8dd549
...@@ -326,8 +326,8 @@ class Hypothesis extends Annotator ...@@ -326,8 +326,8 @@ class Hypothesis extends Annotator
# Returns itself for chaining. # Returns itself for chaining.
_setupEditor: -> _setupEditor: ->
@editor = this._createEditor() @editor = this._createEditor()
.on('hide', => @provider.onEditorHide) .on('hide', => @provider.onEditorHide())
.on('save', => @provider.onEditorSubmit) .on('save', => @provider.onEditorSubmit())
this this
_createEditor: -> _createEditor: ->
......
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