ajacksified / ajacksified/Mediator.js
Support chaining
Aperta
- Lingua principale
- JavaScript
- Stelle
- 460
- Fork
- 75
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Have you through of adding chaining to `subscribe`, `once` and `remove` methods?
E.g.
``` js
Mediator
.subscribe('channe:one', doOne)
.subscribe('channel:two', doTwo)
.subscribe('channe:three', doThree)
```
I notice `subscribe` and `once` return the `subscriber`. What is the use case for this?
If this would be a positive change I'd be happy to submit a pull.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.