[annotator-dev] _apiRequest complete event?

Ben Leinfelder leinfelder at nceas.ucsb.edu
Thu Nov 13 16:36:44 UTC 2014

Hi Devs,
I'm still working with the 1.2.9 branch and trying to respond to an 'annotationDeleted' event. I notice that the event is published before the actual DELETE is made to the REST endpoint so I'm left guessing when the annotation is actually removed from the remote store. I don't see another event published when the onSuccess callback in _apiRequest(action, obj, onSuccess) is called, but perhaps there could be a way to publish such a thing. Perhaps we could call onSuccess and also publish an event like (action + "CallComplete") that can be subscribed to? Other suggestions?

More information about the annotator-dev mailing list