projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3e838
)
Suppress the EventEmitter's warning for ObjectsRegistry.
author
Cheng Zhao
<zcbenz@gmail.com>
Sun, 15 Dec 2013 08:15:18 +0000
(16:15 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Sun, 15 Dec 2013 08:15:18 +0000
(16:15 +0800)
It's possible that many objects subscribed to it.
browser/lib/objects-registry.coffee
patch
|
blob
|
history
diff --git
a/browser/lib/objects-registry.coffee
b/browser/lib/objects-registry.coffee
index
df2ad53
..
12063fe
100644
(file)
--- a/
browser/lib/objects-registry.coffee
+++ b/
browser/lib/objects-registry.coffee
@@
-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