Concierge JS
A simple deferred async event emitting library
Installation
Node :
simply install through npm. ( node package manager )
npm install concierge
Browser :
download concierge.js and include it in your site directory
Loading
Node :
var concierge = ;
Browser :
Using
Transform any Object
into an event emitter with an interface of
var o = ; concierge ; oon Function oonce Function ooff Function oemit Function
concierge.on
Takes an event and a callback that is called each time the event is emitted
o ;
concierge.once
Takes an event and a callback that is only called once
o ;
concierge.off
Takes an event and the function you want to stop listening to if no function is passed in it will remove all listeners from that event
o ; o ;
concierge.emit
Will call all callbacks of the given event with all arguments following
o ;