Update listener example

This commit is contained in:
Talia 2022-07-01 09:05:58 +02:00
parent af137c4b24
commit a1178b916a

View file

@ -4,8 +4,8 @@ properties and react accordingly.
Example:
const l = listener()
l.listen("contract", contract => speaker.handle(contract))
l.contract = new Contract()
l.listen("contract", contract => speaker.speak(contract))
l.contract = Sithis.getNewContract()
*/
const registry = new Map()