Jupiter JS
Jupiter is a light-weight and simple to use Publish/Subscribe library for JavaScript. It's designed to work with both AMD & CommonJS and sports a clean, intuitive API.
Quick example:
foo.js
// Set the topic `someTopic` as a variable.var someTopic = ; // Utilize the variable to subscribe a function...someTopic;
bar.js
// Again, set the topic `someTopic` as a variable.var someTopic = ; // Utilize the variable to publish to a function...someTopic;
For more examples & documentation, see Jupiter's homepage.