This is a simple pub-sub module written in TypeScript
It is based on this two sources.
https://gist.github.com/k33g/3959903
http://www.aaron-powell.com/posts/2012-10-02-pubsub-in-typescript.html
Thanks Philippe Charriere and Aaron Powell for their contribution.
TypeScript version 0.9.7
I tried to make usage as simple as possible.
var minibus = new Gom.EventManager();
minibus.publish("message", observable, optional_data);
var sub = subscribe("message", function (observable, optional_data) { console.log(observable, optional_data); });
sub.unSubscribe();
minibus.unSubscribe(sub);
This code is provided as is. Feel free to Fork and contribute.