alpheios-project / arethusa

Arethusa: Annotation Environment
http://sosol.perseids.org/tools/arethusa
MIT License
34 stars 26 forks source link

I793 #794

Closed balmas closed 4 years ago

balmas commented 4 years ago

I'm not sure if this is really the best way to do this, but this change causes the custom ArethusaLoaded event to be dispatched to the document body when Arethusa is fully loaded.

The event detail object contains a currentTokenCount property set the number of tokens in the currently loaded chunk. Not sure that's of any use really, but it does confirm that something is there in the state.

I've also added an api call which can be used to check the state, although I'm not sure how useful it is since you would need to listen to the event anyway.

Let me know what you think and if you have requests for how I can do this differently.

balmas commented 4 years ago

oops - wrong branch -- will close and reissue.