Simple implementation of a publish subscribe module in the browser. It is dead simple and has no dependencies. Provides you with an easy way to do event based applications without using the DOM.
Can be used to drive application flow with application wide hubs or be used to decouple UI widgets. You can have one large hub or multiple small hubs in your application
// Subscribe to a topic
var hub = eventHub.create();
hub.subscribe("someTopic", function(data){
console.log(data.text);
});
// Publish a topic
hub.publish("someTopic", {text: "hello world"});
// You can also use the hub right out of the box, like so
eventHub.pubslish("..", {});
eventHub.subscribe("..", function(){});
Bugs or other types of feedback hit me on @FINN_tech.