Update events.md

This commit is contained in:
Dennis Eichhorn 2018-07-31 08:43:14 +02:00 committed by GitHub
parent 0aab0f0ce6
commit 2a8f5b9fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,4 +58,8 @@ $eventManager->trigger('eventId', 'conditionName'); // No output (if remove = fa
$eventManager->trigger('eventId', 'conditionName'); // No output (if remove = true)
```
The order in which these conditions are triggered doesn't mapper. A multi condition event SHOULD be atteched with the optional boolean parameter `true`. These events can only be executed once and will be removed afterwards. In case the optional boolean parameter was not set to `true` the event will remain in the event manager and will be triggered whenever `trigger('eventId')` is called.
The order in which these conditions are triggered doesn't mapper. A multi condition event SHOULD be atteched with the optional boolean parameter `true`. These events can only be executed once and will be removed afterwards. In case the optional boolean parameter was not set to `true` the event will remain in the event manager and will be triggered whenever `trigger('eventId')` is called.
## Frontend vs. Backend
The only key difference between the frontend and backend implementation is that the frontend prevents runnning the same event in quick succession (less than 500 ms) in order to prevent undesired effects which can happen due to quick UI interaction.