Update listener example
This commit is contained in:
parent
af137c4b24
commit
a1178b916a
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue