Prepare for routes in event manager

This commit is contained in:
Dennis Eichhorn 2018-03-31 21:58:50 +02:00
parent f2da5de06e
commit a0876a941b

View File

@ -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
* *