Promise + Event = ?
npm install eventmaster
bower install eventmaster`
var eventFactory = require('eventmaster/event');
var event = eventFactory();
var singleEvent = new eventFactory.Event();
event.on
/event.bind
/event.addListener
event.off
/event.unbind
/event.removeListener
event.emit
/event.trigger
/event.fire
event.disable
event.enable
var eventFactory = require('eventmaster/stateful');
var event = eventFactory();
var singleEvent = new eventFactory.StatefulEvent();
(In addition to the above API)
event.addOnceListener
/event.once
/event.wait
event.removeOnceListener
/event.cancel
event.progress
event.notify
event.resolve
event.reset
event.merge
var eventFactory = require('eventmaster');
var event = eventFactory();
var promise = new eventFactory.Promise();
(In addition to the above API)
event.then
/event.addOnceListener
/event.once
/event.wait
event.done
event.fail
event.error
event.reject
event.follow
event.end
event.all
event.any
event.some
Copyright (c) 2010 - 2014 dexteryy
Licensed under the MIT license.