src/app/www/js/functions.js
/**
     * Dispatches an event. At the moment, only the option 'once' is supported
     * internally - though if the event is dispatched automatically with
     * httpEventSource, all options will be supported.
     * @param {String} event 
     */
Dispatches an event. At the moment, only the option 'once' is supported
internally - though if the event is dispatched automatically with
httpEventSource, all options will be supported.
@param {String} event
Dispatches an event . At the moment only the option ' once ' is supported internally - though if the event is dispatched automatically with httpEventSource all options will be supported . @param { String } event
dispatchEvent(event) {
        if(this.listeners[event]) {
            this.listeners[event]();
            if(this.listeners[event].options && this.listeners[event].options.once) {
                this.removeEventListener(event);
            }
        }
        else {
            toast.show(`Received unknown event: ${event}.`, Toast.Mode.ERROR);
        }
    }
dispatchEvent ( event ) { if ( this . listeners [ event ] ) { this . listeners [ event ] ( ) ; if ( this . listeners [ event ] . options && this . listeners [ event ] . options . once ) { this . removeEventListener ( event ) ; } } else { toast . show ( ` ${ event } ` , Toast . Mode . ERROR ) ; } }
Dispatches an event.
Dispatches an event .