Promise + Event = ?
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.
eventmaster
tests
.gitignore
Gruntfile.js
README.md
bower.json
eventmaster.js
package.json

README.md

EventMaster

Promise + Event = ?

Examples

In NodeJS

npm install eventmaster

In browser

bower install eventmaster`

Dependencies

API and usage

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

More References

See OzJS Project Homepage

License

Copyright (c) 2010 - 2014 dexteryy
Licensed under the MIT license.