ajacksified / ajacksified/Mediator.js

Is it normal that this.stopped = false appears at the end of publish and not the start?

Aperta
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
460
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Let's say we have a call to

channel.publish('something', true);

And we want to know just after we want to know if the propagation has been stopped, is that normal that

this.stopped = false;

appears at the end of the publish method, instead of at the top of it? (as initialization?)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.