ajacksified / ajacksified/Mediator.js

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

Offen
#27 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
460
Forks
75
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.