[annotator-dev] Subscribing to Annotator events from another application

Randall Leeds tilgovi at hypothes.is
Tue Aug 14 20:14:27 UTC 2012


You can subscribe by calling the subscribe method on the Annotator instance.

The event methods come from the Delegator prototype in
annotator/src/class.coffee.
On Aug 14, 2012 9:18 AM, "Jamie M Folsom" <jfolsom at mit.edu> wrote:

> Hi All,
>
> I've got a backbone.js-based list of annotations on an Annotator-enabled
> page. I want to listen for Annotator events (annotationsLoaded,
> annotationCreated, etc) from that (non-Annotator-aware) list, and update it
> accordingly.
>
> How would I go about subscribing to those events? Do I have to create an
> Annotator plugin to interfaces with the backbone app (the Annotator docs
> would suggest that a plugin is needed to subscribe to events), or can I
> subscribe to them directly from the backbone app?
>
> Thanks!
>
> Jamie
>
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20120814/b1dcddc0/attachment-0002.html>


More information about the annotator-dev mailing list