Simple Pub Sub Object
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.DS_Store
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

SimplePubSub

Simple Publish/Subscriber class

var SimplePubSub = require('SimplePubSub'),
    childinstance = function(){
      SimplePubSub.apply( this, arguments );
    };
childinstance.prototype = new SimplePubSub();

childinstance.on('hi', function mycallback(){
  console.log('omg')
});
childinstance.emit('hi')  // logs 'omg'

License

Copyright (c) 2013 SamuelHough
Licensed under the MIT license.