Commit 3e4b617e authored by Gerben's avatar Gerben Committed by Aron Carroll

Move sync method from Bridge plugin

parent b0ab104e
......@@ -55,6 +55,14 @@ class AnnotationSync
getAnnotationForTag: (tag) ->
@cache[tag] or null
sync: (annotations, cb) ->
annotations = (this._format a for a in annotations)
@bridge._call
method: 'sync'
params: annotations
callback: cb
this
# Handlers for messages arriving through a channel
_channelListeners:
'beforeCreateAnnotation': (txn, body) ->
......
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