ajacksified / ajacksified/Mediator.js

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

Open
#43 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
460
Forks
75
PR merge metrics
No merged PRs in 30d

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.