Change listener map to weak map
This commit is contained in:
parent
233a96d0e0
commit
0103592665
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ Example:
|
|||
l.contract = Sithis.getNewContract()
|
||||
*/
|
||||
|
||||
const registry = new Map()
|
||||
const registry = new WeakMap()
|
||||
const listener = (target={}) => {
|
||||
const callbacks = new Map()
|
||||
const methods = Object.create(null)
|
||||
|
|
Loading…
Reference in a new issue