dispatch-all
broadcast payloads to registered callbacks
Last updated a year ago by idjem .
Repository · Bugs · Original npm · Tarball
$ cnpm install dispatch-all 
SYNC missed versions from official npm registry.

dispatch-all

Used to broadcast payloads to registered callbacks.

  • **dispatch all -> Every payload is dispatched to every registered callback

API

  • register(function callback): string Registers a callback. Returns id that can be unregist.

  • unregister(string id): void Removes a callback based on its id.

  • dispatch(object payload): void Dispatches a payload to all registered callbacks.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |