SourceBit.PubSub Publish/Subscribe pattern implementation for javascript. Subscribe to event: $.subscribe("event", function () { .... }); $.single("event", this, this.function); $.publish("event") $.unsubscribe("event", function () { ... })