incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gord Tanner <gtan...@gmail.com>
Subject [DISCUSS] Switching out Channel's in callback-js for an event module
Date Thu, 01 Dec 2011 21:48:29 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message