Please see reference branch here:
https://github.com/gtanner/callback-js/tree/event

One of the issues with Channel's in a module based system is that it is
awkward to keep track to a central repository of channel objects.

I coded up a quick prototype using an event module.  This gives us the
ability to trigger and sync on events by just using a string (rather than
an instance created before hand). It cleans up some of the code and doesn't
require the pre-construction of all the channels before hand.

See tests here:
https://github.com/gtanner/callback-js/blob/event/test/test.event.js

See use case here:
https://github.com/gtanner/callback-js/blob/event/lib/bootstrap.js


----
Gord Tanner
Code Poet
RIM
@gordtanner

Reply via email to