Skip to content

Commit fce4ab2

Browse files
committed
Use Delegator event helpers in Document
1 parent f410ac9 commit fce4ab2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugin/document.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ Annotator = require('annotator')
22

33

44
class Annotator.Plugin.Document extends Annotator.Plugin
5+
events:
6+
'beforeAnnotationCreated': 'beforeAnnotationCreated'
57

68
pluginInit: ->
7-
@annotator.subscribe('beforeAnnotationCreated', this.beforeAnnotationCreated)
89
this.getDocumentMetadata()
910

1011
# returns the primary URI for the document being annotated

0 commit comments

Comments
 (0)