chop-dbhi / cilantro

Official client for Harvest (http://harvest.research.chop.edu)
http://cilantro.harvest.io
Other
28 stars 8 forks source link

Add `main` function to Cilantro #754

Open bruth opened 9 years ago

bruth commented 9 years ago

The cilantro.js file contains the cilantro object that consumers can bind to for events. However, the module triggers the init event which means no consumer can actually bind to it before the module is loaded.

This issue proposes adding a main function to cilantro that can be called by the consumer to initialize the application. This enables the cilantro module to be loaded, bound to, and configured. Finally the consumer can call cilantro.main() to kick off the events.