Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple Pub Sub Object
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.