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:
|
Example:
|
||||||
const l = listener()
|
const l = listener()
|
||||||
l.listen("contract", contract => speaker.handle(contract))
|
l.listen("contract", contract => speaker.speak(contract))
|
||||||
l.contract = new Contract()
|
l.contract = Sithis.getNewContract()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const registry = new Map()
|
const registry = new Map()
|
||||||
|
|
Loading…
Reference in a new issue