mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 08:28:40 +00:00
Prepare for routes in event manager
This commit is contained in:
parent
f2da5de06e
commit
a0876a941b
|
|
@ -121,6 +121,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.hasOutstanding(group)) {
|
if (!this.hasOutstanding(group)) {
|
||||||
|
// todo if it is route then call dispatcher?
|
||||||
this.callbacks[group].func(data);
|
this.callbacks[group].func(data);
|
||||||
|
|
||||||
if (this.callbacks[group].remove) {
|
if (this.callbacks[group].remove) {
|
||||||
|
|
@ -154,7 +155,7 @@
|
||||||
* Attach callback to event group
|
* Attach callback to event group
|
||||||
*
|
*
|
||||||
* @param {string|int} group Group id
|
* @param {string|int} group Group id
|
||||||
* @param {function} callback Callback
|
* @param {function} callback Callback or route for the event
|
||||||
* @param {boolean} [remove] Should be removed after execution
|
* @param {boolean} [remove] Should be removed after execution
|
||||||
* @param {boolean} [reset] Reset after triggering
|
* @param {boolean} [reset] Reset after triggering
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user