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.
The
cilantro.js
file contains thecilantro
object that consumers can bind to for events. However, the module triggers theinit
event which means no consumer can actually bind to it before the module is loaded.This issue proposes adding a
main
function tocilantro
that can be called by the consumer to initialize the application. This enables thecilantro
module to be loaded, bound to, and configured. Finally the consumer can callcilantro.main()
to kick off the events.