ajacksified / ajacksified/Mediator.js

Default priority? How to set a listener to be called at the end?

Ouverte
#43 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
460
Forks
75
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi,

unfortunately I didn't found any deeper documentation about priority. The documentation says that there is a priority property and you can set a integer value but there is no example or use case.

However, I would like to begin with one use case. I have one function that should be called as the last event listener since it depends on settings the previous listeners will set. Therefore it would be good to know what the default priority is? If it would be `1` I hopefully could set priority to `0` and the function would be called at the end.

However, could somebody @ajacksified tell me how to manage such situations with Mediator.js?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.