Commit 57c4253c authored by Randall Leeds's avatar Randall Leeds

Emit a sync event from AnnotationSync

This ensures there's a digest cycle on the angular side after
the client state is synchronized and brings this into symmetry
with the other RPC calls defined by AnnotationSync.
parent 35a8ec1f
......@@ -96,7 +96,9 @@ module.exports = class AnnotationSync
cb(null, this._format(annotation))
'sync': (bodies, cb) ->
cb(null, (this._format(this._parse(b)) for b in bodies))
annotations = (this._format(this._parse(b)) for b in bodies)
@_emit('sync', annotations)
cb(null, annotations)
'loadAnnotations': (bodies) ->
annotations = (this._parse(a) for a in bodies)
......
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