Commit c9544eff authored by Randall Leeds's avatar Randall Leeds

Symmetry in AnnotationSync for loadAnnotations

Like all the other calls, this should invoke its callback.
parent 57c4253c
......@@ -100,9 +100,10 @@ module.exports = class AnnotationSync
@_emit('sync', annotations)
cb(null, annotations)
'loadAnnotations': (bodies) ->
'loadAnnotations': (bodies, cb) ->
annotations = (this._parse(a) for a in bodies)
@_emit('loadAnnotations', annotations)
cb(null, annotations)
# Handlers for events coming from this frame, to send them across the channel
_eventListeners:
......
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