Suppress the EventEmitter's warning for ObjectsRegistry.
It's possible that many objects subscribed to it.
This commit is contained in:
parent
aa3e8385df
commit
cc5db4dab9
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ class ObjectsStore
|
|||
|
||||
class ObjectsRegistry extends EventEmitter
|
||||
constructor: ->
|
||||
@setMaxListeners Number.MAX_VALUE
|
||||
|
||||
# Objects in weak map will be not referenced (so we won't leak memory), and
|
||||
# every object created in browser will have a unique id in weak map.
|
||||
@objectsWeakMap = new IDWeakMap
|
||||
|
|
Loading…
Reference in a new issue